Univention Bugzilla – Full Text Bug Listing |
Summary: | Preventing certain UMC modules from being opened multiple times | ||
---|---|---|---|
Product: | UCS | Reporter: | Dirk Wiesenthal <wiesenthal> |
Component: | UMC (Generic) | Assignee: | Dirk Wiesenthal <wiesenthal> |
Status: | CLOSED FIXED | QA Contact: | Florian Best <best> |
Severity: | normal | ||
Priority: | P5 | CC: | best, gohmann, gulden, jmm, klaeser, steuwer |
Version: | UCS 3.1 | ||
Target Milestone: | UCS 3.2-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Bug Depends on: | 31662 | ||
Bug Blocks: | 34028 | ||
Attachments: | Support "unique" in a module; return the module of openModule() |
Description
Dirk Wiesenthal
2013-06-28 16:46:04 CEST
*** Bug 31877 has been marked as a duplicate of this bug. *** Singleton... I was previously searching for this bug using "singleton". The next time I should be able to find :) . (In reply to Alexander Kläser from comment #2) > Singleton... I was previously searching for this bug using "singleton". The > next time I should be able to find :) . Therefore you can use the 'Alias' field. (In reply to Florian Best from comment #3) > (In reply to Alexander Kläser from comment #2) > > Singleton... I was previously searching for this bug using "singleton". The > > next time I should be able to find :) . > Therefore you can use the 'Alias' field. Hm, not exactly… alias works similar to an ID, it is unique, not like tags, for instance. Needed for the App Center: openModule needs to return the tab it creates in openModule() (first part of the patch). But the "unique" workaround in the App Center would benefit from that (it somewhat prevents execution of openModule() if App Center is already opened), so openModule needs to natively support "unique: true" of a module (second part). Created attachment 5766 [details]
Support "unique" in a module; return the module of openModule()
(In reply to Dirk Wiesenthal from comment #5) > But the "unique" workaround in the App Center would benefit from that But the "unique" workaround in the App Center would *not* benefit from that Fixed in univention-management-console-frontend 3.0.152-20.817.201402031320 Can be enabled with return declare("umc.modules.mymodule", Module, { + unique: true, [...] }); And openModule returns the module it has opened (or the unique one...): require('umc/app').openModule('appcenter').selectComponentsPage() Please consider also that modules can have UMC-flavors. (In reply to Florian Best from comment #9) > Please consider also that modules can have UMC-flavors. Considered in univention-management-console-frontend 3.0.152-21.819.201402041443 OK |