mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
fix for e2e
This commit is contained in:
@@ -64,6 +64,33 @@
|
|||||||
"type": "separator",
|
"type": "separator",
|
||||||
"order": 199
|
"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",
|
"id": "app.logout",
|
||||||
"order": 200,
|
"order": 200,
|
||||||
|
@@ -459,18 +459,7 @@ export class AppExtensionService implements RuleContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getMoreActions(): Observable<Array<ContentActionRef>> {
|
getMoreActions(): Observable<Array<ContentActionRef>> {
|
||||||
return this._moreActions.pipe(
|
return this._moreActions.pipe(map((moreActions) => this.getAllowedActions(moreActions)));
|
||||||
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, [])
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getAllowedContextMenuActions(): Observable<Array<ContentActionRef>> {
|
getAllowedContextMenuActions(): Observable<Array<ContentActionRef>> {
|
||||||
|
Reference in New Issue
Block a user