mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
enable prefer-const rule for tslint, fix issues (#4409)
* enable prefer-const rule for tslint, fix issues * Update content-node-selector.component.spec.ts * Update content-node-selector.component.spec.ts * fix const * fix lint issues * update tests * update tests * update tests * fix code * fix page class
This commit is contained in:
committed by
Eugenio Romano
parent
26c5982a1a
commit
a7a48e8b2b
@@ -122,7 +122,7 @@ export class TaskAttachmentListComponent implements OnChanges, AfterContentInit
|
||||
const opts = 'true';
|
||||
this.activitiContentService.getTaskRelatedContent(taskId, opts).subscribe(
|
||||
(res: any) => {
|
||||
let attachList = [];
|
||||
const attachList = [];
|
||||
res.data.forEach((content) => {
|
||||
attachList.push({
|
||||
id: content.id,
|
||||
@@ -162,17 +162,17 @@ export class TaskAttachmentListComponent implements OnChanges, AfterContentInit
|
||||
}
|
||||
|
||||
onShowRowActionsMenu(event: any) {
|
||||
let viewAction = {
|
||||
const viewAction = {
|
||||
title: 'ADF_TASK_LIST.MENU_ACTIONS.VIEW_CONTENT',
|
||||
name: 'view'
|
||||
};
|
||||
|
||||
let removeAction = {
|
||||
const removeAction = {
|
||||
title: 'ADF_TASK_LIST.MENU_ACTIONS.REMOVE_CONTENT',
|
||||
name: 'remove'
|
||||
};
|
||||
|
||||
let downloadAction = {
|
||||
const downloadAction = {
|
||||
title: 'ADF_TASK_LIST.MENU_ACTIONS.DOWNLOAD_CONTENT',
|
||||
name: 'download'
|
||||
};
|
||||
@@ -188,8 +188,8 @@ export class TaskAttachmentListComponent implements OnChanges, AfterContentInit
|
||||
}
|
||||
|
||||
onExecuteRowAction(event: any) {
|
||||
let args = event.value;
|
||||
let action = args.action;
|
||||
const args = event.value;
|
||||
const action = args.action;
|
||||
if (action.name === 'view') {
|
||||
this.emitDocumentContent(args.row.obj);
|
||||
} else if (action.name === 'remove') {
|
||||
@@ -200,7 +200,7 @@ export class TaskAttachmentListComponent implements OnChanges, AfterContentInit
|
||||
}
|
||||
|
||||
openContent(event: any): void {
|
||||
let content = event.value.obj;
|
||||
const content = event.value.obj;
|
||||
this.emitDocumentContent(content);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user