mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ci:force] remove "Start process" from the Content demo as not related to document list
This commit is contained in:
@@ -199,8 +199,7 @@
|
|||||||
"DOCUMENT": {
|
"DOCUMENT": {
|
||||||
"COPY": "Copy",
|
"COPY": "Copy",
|
||||||
"MOVE": "Move",
|
"MOVE": "Move",
|
||||||
"DELETE": "Delete",
|
"DELETE": "Delete"
|
||||||
"PROCESS_ACTION": "Start Process"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@@ -325,13 +325,6 @@
|
|||||||
title="DOCUMENT_LIST.ACTIONS.VERSIONS"
|
title="DOCUMENT_LIST.ACTIONS.VERSIONS"
|
||||||
(execute)="onManageVersions($event)">
|
(execute)="onManageVersions($event)">
|
||||||
</content-action>
|
</content-action>
|
||||||
<content-action
|
|
||||||
target="document"
|
|
||||||
*ngIf="authenticationService.isBpmLoggedIn()"
|
|
||||||
icon="play_arrow"
|
|
||||||
title="DOCUMENT_LIST.ACTIONS.DOCUMENT.PROCESS_ACTION"
|
|
||||||
(execute)="startProcessAction($event)">
|
|
||||||
</content-action>
|
|
||||||
<content-action
|
<content-action
|
||||||
target="document"
|
target="document"
|
||||||
icon="lock"
|
icon="lock"
|
||||||
@@ -405,15 +398,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="processId">
|
|
||||||
<adf-start-process
|
|
||||||
[values]="formValues"
|
|
||||||
[appId]="processId"
|
|
||||||
(start)="closeStartProcess()"
|
|
||||||
(cancel)="closeStartProcess()">
|
|
||||||
</adf-start-process>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="showSettingsPanel" class="app-content-service-settings">
|
<div *ngIf="showSettingsPanel" class="app-content-service-settings">
|
||||||
|
|
||||||
<p>Current folder ID: {{ documentList.currentFolderId }}</p>
|
<p>Current folder ID: {{ documentList.currentFolderId }}</p>
|
||||||
|
@@ -40,15 +40,12 @@ import {
|
|||||||
SearchEntry
|
SearchEntry
|
||||||
} from '@alfresco/js-api';
|
} from '@alfresco/js-api';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService,
|
|
||||||
AuthenticationService,
|
|
||||||
AppConfigService,
|
AppConfigService,
|
||||||
AppConfigValues,
|
AppConfigValues,
|
||||||
NotificationService,
|
NotificationService,
|
||||||
DataRow,
|
DataRow,
|
||||||
UserPreferencesService,
|
UserPreferencesService,
|
||||||
PaginationComponent,
|
PaginationComponent,
|
||||||
FormValues,
|
|
||||||
DisplayMode,
|
DisplayMode,
|
||||||
ShowHeaderMode,
|
ShowHeaderMode,
|
||||||
InfinitePaginationComponent,
|
InfinitePaginationComponent,
|
||||||
@@ -71,9 +68,7 @@ import {
|
|||||||
NodesApiService,
|
NodesApiService,
|
||||||
SharedLinksApiService
|
SharedLinksApiService
|
||||||
} from '@alfresco/adf-content-services';
|
} from '@alfresco/adf-content-services';
|
||||||
|
import { ProcessFormRenderingService } from '@alfresco/adf-process-services';
|
||||||
import { SelectAppsDialogComponent, ProcessFormRenderingService } from '@alfresco/adf-process-services';
|
|
||||||
|
|
||||||
import { VersionManagerDialogAdapterComponent } from './version-manager-dialog-adapter.component';
|
import { VersionManagerDialogAdapterComponent } from './version-manager-dialog-adapter.component';
|
||||||
import { MetadataDialogAdapterComponent } from './metadata-dialog-adapter.component';
|
import { MetadataDialogAdapterComponent } from './metadata-dialog-adapter.component';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
@@ -117,10 +112,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
@Input()
|
@Input()
|
||||||
currentFolderId: string = DEFAULT_FOLDER_TO_SHOW;
|
currentFolderId: string = DEFAULT_FOLDER_TO_SHOW;
|
||||||
|
|
||||||
formValues: FormValues = {};
|
|
||||||
|
|
||||||
processId;
|
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
sorting = ['name', 'ASC'];
|
sorting = ['name', 'ASC'];
|
||||||
|
|
||||||
@@ -258,8 +249,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
private preference: UserPreferencesService,
|
private preference: UserPreferencesService,
|
||||||
private preview: PreviewService,
|
private preview: PreviewService,
|
||||||
@Optional() private route: ActivatedRoute,
|
@Optional() private route: ActivatedRoute,
|
||||||
public authenticationService: AuthenticationService,
|
|
||||||
public alfrescoApiService: AlfrescoApiService,
|
|
||||||
private contentMetadataService: ContentMetadataService,
|
private contentMetadataService: ContentMetadataService,
|
||||||
private sharedLinksApiService: SharedLinksApiService,
|
private sharedLinksApiService: SharedLinksApiService,
|
||||||
private dialogAspectListService: DialogAspectListService,
|
private dialogAspectListService: DialogAspectListService,
|
||||||
@@ -545,24 +534,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
return false;
|
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 {
|
onChangePageSize(event: Pagination): void {
|
||||||
this.preference.paginationSize = event.maxItems;
|
this.preference.paginationSize = event.maxItems;
|
||||||
this.pagination.maxItems = event.maxItems;
|
this.pagination.maxItems = event.maxItems;
|
||||||
|
Reference in New Issue
Block a user