feat(device): Add confirmation question before reset the configuration (#449)

* feat(device): Add confirmation question before reset the configuration

* feat(device): text change

* style: fix ts-lint error
This commit is contained in:
Róbert Kiss
2017-10-14 16:49:13 +02:00
committed by László Monda
parent 6b46c85ca6
commit a4056a8b8b
6 changed files with 29 additions and 6 deletions

View File

@@ -6,8 +6,13 @@
<ul class="list-unstyled btn-list">
<li>
<button class="btn btn-danger"
(click)="resetUserConfiguration()">Reset user configuration including all your keymaps and macros
</button>
mwlConfirmationPopover
title="Are you sure?"
placement="bottom"
confirmText="Yes"
cancelText="No"
(confirm)="resetUserConfiguration()">Reset user configuration
</button> - including all your keymaps and macros
</li>
<li>
<button class="btn btn-default"

View File

@@ -22,11 +22,11 @@ export class DeviceSettingsComponent {
this.store.dispatch(new ResetUserConfigurationAction());
}
saveConfigurationInJSONFormat(){
saveConfigurationInJSONFormat() {
this.store.dispatch(new SaveUserConfigInJsonFileAction());
}
saveConfigurationInBINFormat(){
saveConfigurationInBINFormat() {
this.store.dispatch(new SaveUserConfigInBinaryFileAction());
}
}