Bug 35043 - Support calling a module's function without opening it
Summary: Support calling a module's function without opening it
Status: RESOLVED DUPLICATE of bug 33147
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
Version: UCS 3.2
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-03 09:51 CEST by Dirk Wiesenthal
Modified: 2014-06-05 12:11 CEST (History)
1 user (show)

See Also:
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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2014-06-03 09:51:12 CEST
Currently a module in UMC does nothing until it is opened.

It would be nice if some (defined) functions would be called during setupGui() in app.js.

This would make hard coded checks in app.js like _checkJoinStatus() unnecessary. We could implement it where it belongs: In the join module.

We could also add invisible modules that can interoperate with out notification system.

We could also add some keywords to the UMC overview searchSideBar for every module (e.g. titles of tabs, names of UDM submodules, etc.)

Example:
return declare("umc.modules.mymodule", [ Module ], {
  callOnSetup: ['addNotification'],
  title: 'My Module',
  addNotification: function() {
    // be careful with "this". working on prototype!
    // better not setting anything
    dialog.notify('Hi, open me - my name is ' + this.title);
  }
}
Comment 1 Dirk Wiesenthal univentionstaff 2014-06-03 16:14:07 CEST
We may want to call those function with the the App itself so that those functions can manipulate the _settingsMenu and the _searchSideBar
Comment 2 Alexander Kläser univentionstaff 2014-06-05 12:11:13 CEST

*** This bug has been marked as a duplicate of bug 33147 ***