This commit is contained in:
parent
397601b56c
commit
00f735e116
|
@ -32,7 +32,7 @@
|
|||
<button mat-stroked-button color="primary" mat-dialog-close (click)="startRepoHiWf(wf.id)">
|
||||
<mat-icon fontIcon="build"></mat-icon> generate workflow
|
||||
</button>
|
||||
<button mat-stroked-button (click)="showGraphModal(wf)">
|
||||
<button mat-stroked-button (click)="showWfTemplateModal(wf)">
|
||||
<mat-icon fontIcon="polyline"></mat-icon> graph
|
||||
</button>
|
||||
</mat-card-actions>
|
||||
|
|
|
@ -178,15 +178,16 @@
|
|||
config
|
||||
</button>
|
||||
|
||||
<button mat-stroked-button [matMenuTriggerFor]="menu">
|
||||
<button mat-stroked-button [matMenuTriggerFor]="menuTemplates">
|
||||
<mat-icon fontIcon="polyline"></mat-icon>
|
||||
graphs
|
||||
templates
|
||||
</button>
|
||||
<mat-menu #menu="matMenu">
|
||||
<button mat-menu-item (click)="showGraphModal(wfId)" *ngFor="let wfId of wf.workflows">{{wfId}}</button>
|
||||
<mat-menu #menuTemplates="matMenu">
|
||||
<button mat-menu-item (click)="showWfTemplateModal(wfId)"
|
||||
*ngFor="let wfId of wf.workflows">{{wfId}}</button>
|
||||
<mat-divider *ngIf="wf.destroyWf"></mat-divider>
|
||||
<button mat-menu-item (click)="showGraphModal(wf.destroyWf)" *ngIf="wf.destroyWf">
|
||||
wf.destroyWf (destroy)
|
||||
<button mat-menu-item (click)="showWfTemplateModal(wf.destroyWf)" *ngIf="wf.destroyWf">
|
||||
wf.destroyWf (delete)
|
||||
</button>
|
||||
</mat-menu>
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ export class DsmApiComponent implements OnInit {
|
|||
dialogRef.afterClosed().subscribe(result => this.reloadWfs());
|
||||
}
|
||||
|
||||
showGraphModal(wfId: string): void {
|
||||
showWfTemplateModal(wfId: string): void {
|
||||
this.client.dsmGetWfTemplate(wfId, (data: WfTemplateDesc) => this.dialog.open(WfTemplateDialog, { data: data, width: '80%' }));
|
||||
}
|
||||
|
||||
|
@ -438,7 +438,7 @@ export class DsmAddWorkflowDialog {
|
|||
});
|
||||
}
|
||||
|
||||
showGraphModal(wf: WfRepoHi): void {
|
||||
showWfTemplateModal(wf: WfRepoHi): void {
|
||||
const dialogRef = this.dialog.open(WfTemplateDialog, { data: wf, width: '80%' });
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,12 @@
|
|||
</tr>
|
||||
</table>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab label="Code">
|
||||
<pre
|
||||
style="font-size: 0.9em; border: 1px solid lightgray; padding: 1em; border-radius: 1em;">{{template | json}}</pre>
|
||||
</mat-tab>
|
||||
|
||||
</mat-tab-group>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue