mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-10 14:11:17 +00:00
fix for e2e
This commit is contained in:
@@ -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,
|
||||
|
@@ -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>> {
|
||||
|
Reference in New Issue
Block a user