Add the "Export device configuration" button instead of the export link. Make the button export JSON by default and BIN when pressed with Shift.
This commit is contained in:
@@ -34,6 +34,14 @@ export class DeviceConfigurationComponent {
|
||||
this.store.dispatch(new SaveUserConfigInBinaryFileAction());
|
||||
}
|
||||
|
||||
exportUserConfiguration(event: MouseEvent) {
|
||||
if (event.shiftKey) {
|
||||
this.saveConfigurationInBINFormat();
|
||||
} else {
|
||||
this.saveConfigurationInJSONFormat();
|
||||
}
|
||||
}
|
||||
|
||||
changeFile(event): void {
|
||||
const files = event.srcElement.files;
|
||||
const fileReader = new FileReader();
|
||||
|
||||
Reference in New Issue
Block a user