#484 add process actions for folder menus

This commit is contained in:
Denys Vuika
2016-07-28 10:22:07 +01:00
parent 6a2899d480
commit 21194e373a
2 changed files with 26 additions and 8 deletions

View File

@@ -34,3 +34,17 @@ export class ContentActionModel {
export interface ContentActionHandler {
(obj: any, target?: any): any;
}
export class DocumentActionModel extends ContentActionModel {
constructor(json?: any) {
super(json);
this.target = 'document';
}
}
export class FolderActionModel extends ContentActionModel {
constructor(json?: any) {
super(json);
this.target = 'folder';
}
}