This commit is contained in:
parent
a6500a04bd
commit
69544bcede
|
@ -177,6 +177,10 @@
|
|||
<mat-icon fontIcon="edit"></mat-icon>
|
||||
config
|
||||
</button>
|
||||
<button mat-stroked-button color="warn" (click)="destroyWfConf(wf.id)">
|
||||
<mat-icon fontIcon="delete"></mat-icon>
|
||||
delete
|
||||
</button>
|
||||
<button mat-stroked-button color="primary" (click)="startWfConf(wf.id)"
|
||||
[disabled]="!wf.enabled || !wf.configured">
|
||||
<mat-icon fontIcon="play_arrow"></mat-icon>
|
||||
|
|
|
@ -51,11 +51,11 @@ export class DsmClient extends ISClient {
|
|||
}
|
||||
|
||||
dsmStartWfConf(wfConfId: string, onSuccess: Function) {
|
||||
alert('TODO');
|
||||
this.httpGet<WfRepoHi>('/proxy/byType/wf_manager/api/conf/' + encodeURIComponent(wfConfId) + '/start', onSuccess);
|
||||
}
|
||||
|
||||
dsmRepoByeWf(wfId: string, onSuccess: Function) {
|
||||
alert('TODO');
|
||||
dsmDestroyWfConf(wfConfId: string, onSuccess: Function) {
|
||||
this.httpGet<WfRepoHi>('/proxy/byType/wf_manager/api/conf/' + encodeURIComponent(wfConfId) + '/destroy', onSuccess);
|
||||
}
|
||||
|
||||
dsmRecentWfsByDsId(dsId: string, onSuccess: Function) {
|
||||
|
|
|
@ -172,6 +172,21 @@ export class DsmApiComponent implements OnInit {
|
|||
});
|
||||
}
|
||||
|
||||
destroyWfConf(wfConfId: string): void {
|
||||
if (confirm("Are you sure ?")) {
|
||||
this.client.dsmDestroyWfConf(wfConfId, (data: WfHistoryEntry) => {
|
||||
const wfDialogRef = this.dialog.open(WfHistoryDialog, {
|
||||
data: {
|
||||
'dsId': this.ds.id,
|
||||
'apiId': this.api.id,
|
||||
'processId': data.processId,
|
||||
'confId': undefined
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
openJournalDialog(confId: string | undefined, processId: string | undefined) {
|
||||
const wfDialogRef = this.dialog.open(WfHistoryDialog, {
|
||||
data: {
|
||||
|
|
Loading…
Reference in New Issue