fix for e2e

This commit is contained in:
Yasa-Nataliya
2023-05-09 05:22:29 +00:00
parent fda7c245de
commit fe443ad92d
2 changed files with 28 additions and 12 deletions

View File

@@ -64,6 +64,33 @@
"type": "separator",
"order": 199
},
{
"id": "settings",
"title": "App settings",
"description": "Application settings",
"icon": "settings",
"disabled": true,
"order": 10,
"actions": {
"click": "app.actions.settings"
},
"rules": {
"visible": "app.navigation.isNotTrashcan"
}
},
{
"id": "button",
"title": "New Button",
"description": "new button description",
"icon": "alarm_on",
"order": 20,
"actions": {
"click": "app.actions.settings"
},
"rules": {
"visible": "app.navigation.isNotTrashcan"
}
},
{
"id": "app.logout",
"order": 200,

View File

@@ -459,18 +459,7 @@ export class AppExtensionService implements RuleContext {
}
getMoreActions(): Observable<Array<ContentActionRef>> {
return this._moreActions.pipe(
map((moreActions) =>
moreActions
.filter((action) => this.filterVisible(action))
.map((action) => this.copyAction(action))
.map((action) => this.buildMenu(action))
.map((action) => this.setActionDisabledFromRule(action))
.sort(sortByOrder)
.reduce(reduceEmptyMenus, [])
.reduce(reduceSeparators, [])
)
);
return this._moreActions.pipe(map((moreActions) => this.getAllowedActions(moreActions)));
}
getAllowedContextMenuActions(): Observable<Array<ContentActionRef>> {