Skip to content

Commit

Permalink
fix: swap 'Merge Local Data' confirm prompt actions
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Oct 12, 2020
1 parent f814e32 commit 637b1ae
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/assets/javascripts/directives/views/accountMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,12 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {

async mergeLocalChanged() {
if (!this.getState().formData.mergeLocal) {
if (await confirmDialog({
text: STRING_ACCOUNT_MENU_UNCHECK_MERGE,
confirmButtonStyle: 'danger'
})) {
this.setFormDataState({
mergeLocal: true
});
}
this.setFormDataState({
mergeLocal: !(await confirmDialog({
text: STRING_ACCOUNT_MENU_UNCHECK_MERGE,
confirmButtonStyle: 'danger'
}))
});
}
}

Expand Down

0 comments on commit 637b1ae

Please sign in to comment.