From 846fd50c2d3024ac9706e25b021c6d113c224467 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Mon, 31 Jul 2023 18:29:30 -0400 Subject: [PATCH] [ci:force] remove "Start process" from the Content demo as not related to document list --- demo-shell/resources/i18n/en.json | 3 +- .../app/components/files/files.component.html | 16 ---------- .../app/components/files/files.component.ts | 31 +------------------ 3 files changed, 2 insertions(+), 48 deletions(-) diff --git a/demo-shell/resources/i18n/en.json b/demo-shell/resources/i18n/en.json index 91414cd792..0ca6f07a18 100644 --- a/demo-shell/resources/i18n/en.json +++ b/demo-shell/resources/i18n/en.json @@ -199,8 +199,7 @@ "DOCUMENT": { "COPY": "Copy", "MOVE": "Move", - "DELETE": "Delete", - "PROCESS_ACTION": "Start Process" + "DELETE": "Delete" } } }, diff --git a/demo-shell/src/app/components/files/files.component.html b/demo-shell/src/app/components/files/files.component.html index 1c51d43a6c..12e9b45969 100644 --- a/demo-shell/src/app/components/files/files.component.html +++ b/demo-shell/src/app/components/files/files.component.html @@ -325,13 +325,6 @@ title="DOCUMENT_LIST.ACTIONS.VERSIONS" (execute)="onManageVersions($event)"> - - -
- - -
-

Current folder ID: {{ documentList.currentFolderId }}

diff --git a/demo-shell/src/app/components/files/files.component.ts b/demo-shell/src/app/components/files/files.component.ts index 9f876b7317..fe3487a22a 100644 --- a/demo-shell/src/app/components/files/files.component.ts +++ b/demo-shell/src/app/components/files/files.component.ts @@ -40,15 +40,12 @@ import { SearchEntry } from '@alfresco/js-api'; import { - AlfrescoApiService, - AuthenticationService, AppConfigService, AppConfigValues, NotificationService, DataRow, UserPreferencesService, PaginationComponent, - FormValues, DisplayMode, ShowHeaderMode, InfinitePaginationComponent, @@ -71,9 +68,7 @@ import { NodesApiService, SharedLinksApiService } from '@alfresco/adf-content-services'; - -import { SelectAppsDialogComponent, ProcessFormRenderingService } from '@alfresco/adf-process-services'; - +import { ProcessFormRenderingService } from '@alfresco/adf-process-services'; import { VersionManagerDialogAdapterComponent } from './version-manager-dialog-adapter.component'; import { MetadataDialogAdapterComponent } from './metadata-dialog-adapter.component'; import { Subject } from 'rxjs'; @@ -117,10 +112,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy { @Input() currentFolderId: string = DEFAULT_FOLDER_TO_SHOW; - formValues: FormValues = {}; - - processId; - @Input() sorting = ['name', 'ASC']; @@ -258,8 +249,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy { private preference: UserPreferencesService, private preview: PreviewService, @Optional() private route: ActivatedRoute, - public authenticationService: AuthenticationService, - public alfrescoApiService: AlfrescoApiService, private contentMetadataService: ContentMetadataService, private sharedLinksApiService: SharedLinksApiService, private dialogAspectListService: DialogAspectListService, @@ -545,24 +534,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy { return false; } - startProcessAction($event: any) { - this.formValues['file'] = $event.value.entry; - - const dialogRef = this.dialog.open(SelectAppsDialogComponent, { - width: '630px', - panelClass: 'adf-version-manager-dialog' - }); - - dialogRef.afterClosed().subscribe((selectedProcess) => { - this.processId = selectedProcess.id; - }); - - } - - closeStartProcess() { - this.processId = null; - } - onChangePageSize(event: Pagination): void { this.preference.paginationSize = event.maxItems; this.pagination.maxItems = event.maxItems;