mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
various code quality fixes (#5792)
* various code quality fixes * reduce duplicated code * add safety check
This commit is contained in:
@@ -582,10 +582,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
}
|
||||
|
||||
isCustomActionDisabled(node: MinimalNodeEntity): boolean {
|
||||
if (node && node.entry && node.entry.name === 'custom') {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !(node && node.entry && node.entry.name === 'custom');
|
||||
}
|
||||
|
||||
runCustomAction(event: any) {
|
||||
|
Reference in New Issue
Block a user