split toolbar components (#635)

* split create menu into separate component

* toolbar menu item component

* toolbar menu component

* component updates

* unified property name

* code and style improvements

* login module (lazy)
This commit is contained in:
Denys Vuika
2018-09-15 19:28:33 +01:00
committed by GitHub
parent 51bdd3e991
commit f44838ac42
32 changed files with 427 additions and 149 deletions

View File

@@ -244,10 +244,13 @@ export class AppExtensionService implements RuleContext {
return true;
}
runActionById(id: string, context?: any) {
runActionById(id: string) {
const action = this.extensions.getActionById(id);
if (action) {
const { type, payload } = action;
const context = {
selection: this.selection
};
const expression = this.extensions.runExpression(payload, context);
this.store.dispatch({ type, payload: expression });