mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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:
@@ -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`
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user