Added header component for macro

This commit is contained in:
NejcZdovc
2016-09-21 20:40:46 +02:00
parent e50561170b
commit e9a6e30a5d
10 changed files with 96 additions and 69 deletions

View File

@@ -21,7 +21,6 @@ export class MacroComponent implements OnInit, OnDestroy {
@ViewChildren(MacroItemComponent) macroItems: QueryList<MacroItemComponent>;
private macro: Macro;
private routeSubscription: Subscription;
private hasChanges: boolean = false;
@@ -58,10 +57,6 @@ export class MacroComponent implements OnInit, OnDestroy {
throw new Error('Macro not found');
}
saveMacro() {
// @todo Save macro to keyboard
}
addAction() {
this.hideOtherActionEditors(this.macro.macroActions.elements.length);
this.macro.macroActions.elements.push(undefined);
@@ -81,10 +76,6 @@ export class MacroComponent implements OnInit, OnDestroy {
});
}
onNameChange() {
this.hasChanges = true;
}
onEditAction(index: number) {
// Hide other editors when clicking edit button of a macro action
this.hideOtherActionEditors(index);