Unit tests for document list component

This commit is contained in:
Denys Vuika
2016-06-29 16:37:16 +01:00
parent 1334f52e20
commit 01c63f9574
6 changed files with 273 additions and 18 deletions

View File

@@ -35,11 +35,13 @@ export class FolderActionsService {
return null;
}
setHandler(key: string, handler: ContentActionHandler): void {
setHandler(key: string, handler: ContentActionHandler): boolean {
if (key) {
let lkey = key.toLowerCase();
this.handlers[lkey] = handler;
return true;
}
return false;
}
canExecuteAction(obj: any): boolean {