mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
[ADF-2859] fixes for the conditional visibility and disabled states (#3465)
* fixes for the conditional visibility and disabled states * update docs * cleanup code * remove unused code
This commit is contained in:
committed by
Eugenio Romano
parent
1d69f5c407
commit
6f2cbdf697
@@ -42,4 +42,15 @@ export class ContentActionListComponent {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
unregisterAction(action: ContentActionModel): boolean {
|
||||
if (this.documentList && action) {
|
||||
const idx = this.documentList.actions.indexOf(action);
|
||||
if (idx >= 0) {
|
||||
this.documentList.actions.splice(idx, 1);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user