Moved list of macros to the new component

This commit is contained in:
NejcZdovc
2016-10-21 06:20:13 +02:00
committed by József Farkas
parent 1063cb2e6e
commit 3a69726257
11 changed files with 226 additions and 193 deletions

View File

@@ -0,0 +1,14 @@
<template [ngIf]="macro">
<macro-header [macro]="macro"></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>
</template>
<div *ngIf="!macro" class="not-found">
Sorry, there is no macro with this id.
</div>