mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-01 03:25:47 +00:00
n/a
This commit is contained in:
parent
e0d56fa27f
commit
55f558c5c7
@ -84,7 +84,7 @@
|
||||
mat-icon-button
|
||||
title="Move up"
|
||||
color="primary"
|
||||
(click)="editSpecDisplayOrder(wfs && wfs.id, -1)"
|
||||
(click)="editSpecDisplayOrder(cat, wfs.id, 'up')"
|
||||
>
|
||||
<mat-icon>arrow_upward</mat-icon>
|
||||
</button>
|
||||
@ -93,7 +93,7 @@
|
||||
mat-icon-button
|
||||
title="Move down"
|
||||
color="primary"
|
||||
(click)="editSpecDisplayOrder(wfs.id, 1)"
|
||||
(click)="editSpecDisplayOrder(cat, wfs.id, 'down')"
|
||||
>
|
||||
<mat-icon>arrow_downward</mat-icon>
|
||||
</button>
|
||||
|
@ -222,18 +222,20 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
editCategoryDisplayOrder(catId: number, direction: number) {
|
||||
editCategoryDisplayOrder(catId: number, direction: string) {
|
||||
// const reorderedCats = this._reorder(catId, direction, cats) as WorkflowSpecCategoryGroup[];
|
||||
// this._updateCatDisplayOrders(reorderedCats);
|
||||
|
||||
// Send this info to a new endpoint
|
||||
}
|
||||
|
||||
editSpecDisplayOrder(specId: string, direction: number) {
|
||||
editSpecDisplayOrder(cat: WorkflowSpecCategoryGroup, specId: string, direction: string) {
|
||||
// const reorderedSpecs = this._reorder(specId, direction, specs) as WorkflowSpec[];
|
||||
// this._updateSpecDisplayOrders(reorderedSpecs);
|
||||
|
||||
// this.api.reorderWorkflowSpecification();
|
||||
this.api.reorderWorkflowSpecification(specId, direction).subscribe(wfs => {
|
||||
console.log('reorder');
|
||||
// cat.workflow_specs= wfs;
|
||||
});
|
||||
}
|
||||
|
||||
// sortByDisplayOrder = (a, b) => (a.display_order < b.display_order) ? -1 : 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user