mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#9 folder delete action
This commit is contained in:
@@ -23,7 +23,7 @@ import {AlfrescoService} from './alfresco.service';
|
||||
export class DocumentActionsService {
|
||||
private handlers: { [id: string]: ContentActionHandler; } = {};
|
||||
|
||||
constructor(private _alfrescoService: AlfrescoService) {
|
||||
constructor(private _alfrescoService?: AlfrescoService) {
|
||||
this.setupActionHandlers();
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ export class DocumentActionsService {
|
||||
}
|
||||
|
||||
canExecuteAction(obj: any): boolean {
|
||||
return this._alfrescoService && obj && !obj.isFolder;
|
||||
return this._alfrescoService && obj && obj.entry.isFile === true;
|
||||
}
|
||||
|
||||
private setupActionHandlers() {
|
||||
|
Reference in New Issue
Block a user