diff --git a/src/app/webapp-common/pipelines/details-dialog/pipeline-details-drawer.component.html b/src/app/webapp-common/pipelines/details-dialog/pipeline-details-drawer.component.html index 87d12148..bf44e8c3 100644 --- a/src/app/webapp-common/pipelines/details-dialog/pipeline-details-drawer.component.html +++ b/src/app/webapp-common/pipelines/details-dialog/pipeline-details-drawer.component.html @@ -23,7 +23,7 @@
Name: {{ parameter.name }}
Are you sure you want to delete the step?
', - yes: "Delete", - no: "Cancel", - iconClass: "al-ico-trash", - width: 430, - }, - }) - .afterClosed().subscribe((data) => { - // eslint-disable-next-line no-console - //console.log(data); - if(data?.isConfirmed) { + .open(ConfirmDialogComponent, { + data: { + title: "DELETE", + body: 'Are you sure you want to delete the step?
', + yes: "Delete", + no: "Cancel", + iconClass: "al-ico-trash", + width: 430, + }, + }) + .afterClosed() + .subscribe((data) => { + // eslint-disable-next-line no-console + //console.log(data); + if (data?.isConfirmed) { this.deleteStep.emit(this._step); - } - }) - + } + }); + /* setTimeout(() => { // eslint-disable-next-line no-console console.log(this._step); }, 3000) */ } - - trackByFn = (index: number, artifact: Artifact) => artifact.hash || artifact.uri; + public showMoreClicked(parameters: any[]) { + this.matDialog.open(PipelineParametersDialogComponent, { + data: { + parameters: parameters, + paramsChanged: this.paramsChanged.bind(this), + setIsAutoCompleteOpen: this.setIsAutoCompleteOpen.bind(this), + displayFn: this.displayFn.bind(this), + paramSelected: this.paramSelected.bind(this), + ioOptions: this.ioOptions, + trackByValue: this.trackByValue, + }, + panelClass: "light-theme", + width: "600px", + }); + } + trackByFn = (index: number, artifact: Artifact) => + artifact.hash || artifact.uri; copyToClipboard() { - this.store.dispatch(addMessage(MESSAGES_SEVERITY.SUCCESS, 'ID copied successfully')); + this.store.dispatch( + addMessage(MESSAGES_SEVERITY.SUCCESS, "ID copied successfully") + ); } } diff --git a/src/app/webapp-common/pipelines/pipeline-parameters-dialog/pipeline-parameters-dialog.component.html b/src/app/webapp-common/pipelines/pipeline-parameters-dialog/pipeline-parameters-dialog.component.html new file mode 100644 index 00000000..1d2696f9 --- /dev/null +++ b/src/app/webapp-common/pipelines/pipeline-parameters-dialog/pipeline-parameters-dialog.component.html @@ -0,0 +1,54 @@ + + +