mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +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:
@@ -46,6 +46,7 @@ export class DocumentActionsService {
|
||||
|
||||
/**
|
||||
* Gets the handler for an action.
|
||||
*
|
||||
* @param key Identifier of the action
|
||||
* @returns The handler for the action
|
||||
*/
|
||||
@@ -59,6 +60,7 @@ export class DocumentActionsService {
|
||||
|
||||
/**
|
||||
* Sets a new handler for an action.
|
||||
*
|
||||
* @param key Identifier of the action
|
||||
* @param handler Handler for the action
|
||||
* @returns False if the key was an empty/null string, true otherwise
|
||||
@@ -74,6 +76,7 @@ export class DocumentActionsService {
|
||||
|
||||
/**
|
||||
* Checks if actions can be executed for an item.
|
||||
*
|
||||
* @param nodeEntry Item to receive an action
|
||||
* @returns True if the action can be executed on this item, false otherwise
|
||||
*/
|
||||
@@ -134,7 +137,7 @@ export class DocumentActionsService {
|
||||
this.permissionEvent.next(new PermissionModel({
|
||||
type: 'content',
|
||||
action: 'delete',
|
||||
permission: permission
|
||||
permission
|
||||
}));
|
||||
return throwError(new Error('No permission to delete'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user