[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:
Denys Vuika
2022-02-17 15:23:38 +00:00
committed by GitHub
parent bca5a783ab
commit 9f72e30fbc
158 changed files with 2604 additions and 2715 deletions

View File

@@ -24,13 +24,12 @@ import { FolderDialogComponent } from '../dialogs/folder.dialog';
import { ContentService } from '@alfresco/adf-core';
const DEFAULT_FOLDER_PARENT_ID = '-my-';
const DIALOG_WIDTH: number = 400;
@Directive({
selector: '[adf-create-folder]'
})
export class FolderCreateDirective {
static DIALOG_WIDTH: number = 400;
/** Parent folder where the new folder will be located after creation. */
@Input('adf-create-folder')
parentNodeId: string = DEFAULT_FOLDER_PARENT_ID;
@@ -63,12 +62,11 @@ export class FolderCreateDirective {
) {}
private get dialogConfig() {
const { DIALOG_WIDTH: width } = FolderCreateDirective;
const { parentNodeId, title: createTitle, nodeType } = this;
return {
data: { parentNodeId, createTitle, nodeType },
width: `${width}px`
width: `${DIALOG_WIDTH}px`
};
}