Added header component for macro
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user