wip
This commit is contained in:
parent
756995e5fe
commit
e242aeebf3
|
@ -144,10 +144,12 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((data: WorkflowSpecDialogData) => {
|
dialogRef.afterClosed().subscribe((data: WorkflowSpecDialogData) => {
|
||||||
data.id = this.toLowercaseId(data.id);
|
if (data.id) {
|
||||||
if (data && data.id && data.display_name && data.description) {
|
data.id = this.toLowercaseId(data.id);
|
||||||
if (this.canSaveWorkflowSpec(data)) {
|
if (data && data.id && data.display_name && data.description) {
|
||||||
this._upsertWorkflowSpecification(selectedSpec == null, data);
|
if (this.canSaveWorkflowSpec(data)) {
|
||||||
|
this._upsertWorkflowSpecification(selectedSpec == null, data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -359,6 +361,7 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
|
|
||||||
private _addWorkflowSpec(newSpec: WorkflowSpec) {
|
private _addWorkflowSpec(newSpec: WorkflowSpec) {
|
||||||
this.api.addWorkflowSpecification(newSpec).subscribe(_ => {
|
this.api.addWorkflowSpecification(newSpec).subscribe(_ => {
|
||||||
|
this._loadWorkflowLibraries();
|
||||||
this._loadWorkflowSpecs(newSpec.id);
|
this._loadWorkflowSpecs(newSpec.id);
|
||||||
this._displayMessage('Saved new workflow spec.');
|
this._displayMessage('Saved new workflow spec.');
|
||||||
});
|
});
|
||||||
|
@ -367,6 +370,7 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
private _deleteWorkflowSpec(workflowSpec: WorkflowSpec) {
|
private _deleteWorkflowSpec(workflowSpec: WorkflowSpec) {
|
||||||
this.api.deleteWorkflowSpecification(workflowSpec.id).subscribe(() => {
|
this.api.deleteWorkflowSpecification(workflowSpec.id).subscribe(() => {
|
||||||
this._loadWorkflowSpecs();
|
this._loadWorkflowSpecs();
|
||||||
|
this._loadWorkflowLibraries();
|
||||||
this._displayMessage(`Deleted workflow spec ${workflowSpec.id}.`);
|
this._displayMessage(`Deleted workflow spec ${workflowSpec.id}.`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -396,6 +400,10 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
this.snackBar.open(message, 'Ok', {duration: 3000});
|
this.snackBar.open(message, 'Ok', {duration: 3000});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _reloadAllSpecs(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deprecated - backend now reorders
|
* Deprecated - backend now reorders
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue