[AAE-5145] Add enum for content node selector actions (#7039)

* [AAE-5145] Add enum for content node selector actions

* [AAE-5145] Fix lint and unit tests

* Order imports back to original order

* Rename to NodeAction
This commit is contained in:
Thomas Hunter
2021-05-25 14:02:42 +02:00
committed by GitHub
parent 73ccb3e92c
commit bbbdcbdaa5
9 changed files with 59 additions and 28 deletions

View File

@@ -18,7 +18,7 @@
import { Injectable } from '@angular/core';
import { AlfrescoApiService } from '@alfresco/adf-core';
import { MatDialog } from '@angular/material/dialog';
import { ContentNodeSelectorComponent, ContentNodeSelectorComponentData } from '@alfresco/adf-content-services';
import { ContentNodeSelectorComponent, ContentNodeSelectorComponentData, NodeAction } from '@alfresco/adf-content-services';
import { Node } from '@alfresco/js-api';
import { Observable, Subject, throwError } from 'rxjs';
@@ -39,7 +39,7 @@ export class ContentCloudNodeSelectorService {
});
const data = <ContentNodeSelectorComponentData> {
title: 'Select a file',
actionName: 'Attach',
actionName: NodeAction.ATTACH,
currentFolderId,
restrictRootToCurrentFolderId,
select,