* fix(config): delete KeyAction binding of deleted macro * refactor: use sorter import * fix(macro): read the macro id from route params * fix(keyAction): use NoneAction in keyAction mapping
18 lines
581 B
HTML
18 lines
581 B
HTML
<ng-template [ngIf]="macro">
|
|
<macro-header
|
|
[macro]="macro"
|
|
[isNew]="isNew"
|
|
></macro-header>
|
|
<macro-list
|
|
[macro]="macro"
|
|
(add)="addAction($event.macroId, $event.action)"
|
|
(edit)="editAction($event.macroId, $event.index, $event.action)"
|
|
(delete)="deleteAction($event.macroId, $event.index, $event.action)"
|
|
(reorder)="reorderAction($event.macroId, $event.oldIndex, $event.newIndex)"
|
|
></macro-list>
|
|
</ng-template>
|
|
|
|
<div *ngIf="!macro" class="not-found">
|
|
There is no macro with id {{ macroId }}.
|
|
</div>
|