mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-09 16:45:51 +00:00
Deprecate 'none' category
This commit is contained in:
parent
dbdd79fb9a
commit
3288fbda6f
@ -224,6 +224,8 @@ export class WorkflowSpecListComponent implements OnInit {
|
|||||||
|
|
||||||
editCategoryDisplayOrder(catId: number, direction: string) {
|
editCategoryDisplayOrder(catId: number, direction: string) {
|
||||||
this.api.reorderWorkflowCategory(catId, direction).subscribe(cat_change => {
|
this.api.reorderWorkflowCategory(catId, direction).subscribe(cat_change => {
|
||||||
|
console.log('old wfsbycat is: ', this.workflowSpecsByCategory);
|
||||||
|
console.log('new wfsbycat is: ', cat_change);
|
||||||
this.workflowSpecsByCategory = cat_change;
|
this.workflowSpecsByCategory = cat_change;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -242,6 +244,9 @@ export class WorkflowSpecListComponent implements OnInit {
|
|||||||
this.categories = cats;
|
this.categories = cats;
|
||||||
|
|
||||||
// Add a container for specs without a category
|
// Add a container for specs without a category
|
||||||
|
/**
|
||||||
|
* Deprecated - no more 'None'
|
||||||
|
*
|
||||||
this.workflowSpecsByCategory = [{
|
this.workflowSpecsByCategory = [{
|
||||||
id: null,
|
id: null,
|
||||||
name: 'none',
|
name: 'none',
|
||||||
@ -249,10 +254,11 @@ export class WorkflowSpecListComponent implements OnInit {
|
|||||||
workflow_specs: [],
|
workflow_specs: [],
|
||||||
display_order: -1, // Display it at the top
|
display_order: -1, // Display it at the top
|
||||||
}];
|
}];
|
||||||
|
*/
|
||||||
|
|
||||||
this.categories.forEach((cat, i) => {
|
this.categories.forEach((cat, i) => {
|
||||||
this.workflowSpecsByCategory.push(cat);
|
this.workflowSpecsByCategory.push(cat);
|
||||||
this.workflowSpecsByCategory[i + 1].workflow_specs = [];
|
this.workflowSpecsByCategory[i].workflow_specs = [];
|
||||||
});
|
});
|
||||||
this._loadWorkflowSpecs(selectedSpecName);
|
this._loadWorkflowSpecs(selectedSpecName);
|
||||||
this._loadWorkflowLibraries();
|
this._loadWorkflowLibraries();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user