mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-7242] fix eslint warnings for content services project (#7505)
* fix eslint warnings for content services project * fix typing issues
This commit is contained in:
@@ -44,6 +44,7 @@ export class FolderActionsService {
|
||||
|
||||
/**
|
||||
* Gets the handler function for an action.
|
||||
*
|
||||
* @param key Identifier for the action
|
||||
* @returns The handler function
|
||||
*/
|
||||
@@ -57,6 +58,7 @@ export class FolderActionsService {
|
||||
|
||||
/**
|
||||
* Sets a new handler function for an action.
|
||||
*
|
||||
* @param key Identifier for the action
|
||||
* @param handler The new handler function
|
||||
* @returns True if the key was a valid action identifier, false otherwise
|
||||
@@ -72,6 +74,7 @@ export class FolderActionsService {
|
||||
|
||||
/**
|
||||
* Checks if an action is available for a particular item.
|
||||
*
|
||||
* @param nodeEntry Item to check
|
||||
* @returns True if the action is available, false otherwise
|
||||
*/
|
||||
@@ -132,7 +135,7 @@ export class FolderActionsService {
|
||||
|
||||
return handlerObservable;
|
||||
} else {
|
||||
this.permissionEvent.next(new PermissionModel({type: 'folder', action: 'delete', permission: permission}));
|
||||
this.permissionEvent.next(new PermissionModel({type: 'folder', action: 'delete', permission}));
|
||||
return throwError(new Error('No permission to delete'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user