feat(device): Add save config buttons to the Device settings page (#447)

* feat(device): Add save config buttons to the Device settings page

* feat(device): Set danger style to the reset user-config buttone
This commit is contained in:
Róbert Kiss
2017-10-14 16:04:50 +02:00
committed by László Monda
parent 737897b40e
commit 6b46c85ca6
4 changed files with 34 additions and 16 deletions

View File

@@ -59,18 +59,4 @@ export class MainAppComponent {
clickedOnProgressButton(action: Action) {
return this.store.dispatch(action);
}
@HostListener('window:keydown.alt.j', ['$event'])
onAltJ(event: KeyboardEvent): void {
event.preventDefault();
event.stopPropagation();
this.store.dispatch(new SaveUserConfigInJsonFileAction());
}
@HostListener('window:keydown.alt.b', ['$event'])
onAltB(event: KeyboardEvent): void {
event.preventDefault();
event.stopPropagation();
this.store.dispatch(new SaveUserConfigInBinaryFileAction());
}
}