mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1924] Context menu - filter out disabled children (#838)
This commit is contained in:
committed by
Denys Vuika
parent
4c77ace5eb
commit
6c821d0fba
@@ -411,6 +411,7 @@ export class AppExtensionService implements RuleContext {
|
|||||||
const copy = this.copyAction(action);
|
const copy = this.copyAction(action);
|
||||||
if (copy.children && copy.children.length > 0) {
|
if (copy.children && copy.children.length > 0) {
|
||||||
copy.children = copy.children
|
copy.children = copy.children
|
||||||
|
.filter(entry => !entry.disabled)
|
||||||
.filter(childAction => this.filterByRules(childAction))
|
.filter(childAction => this.filterByRules(childAction))
|
||||||
.reduce(reduceSeparators, []);
|
.reduce(reduceSeparators, []);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user