Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: exclude empty wallets and don't show success message when cancel…
Browse files Browse the repository at this point in the history
…ing a save file dialog (#1892)
  • Loading branch information
brenopolanski authored Apr 9, 2020
1 parent 5ebf236 commit 1f7953d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/renderer/components/Modal/ModalExportWallets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
},
excludeEmpty: {
active: false,
filter: el => el.balance
filter: el => Number(el.balance)
},
excludeLedger: {
active: false,
Expand Down Expand Up @@ -253,12 +253,17 @@ export default {
try {
const path = await this.electron_writeFile(raw, defaultPath)
this.$success(this.$t('MODAL_EXPORT_WALLETS.SUCCESS.EXPORT_WALLETS', { path }))
if (path) {
this.$success(this.$t('MODAL_EXPORT_WALLETS.SUCCESS.EXPORT_WALLETS', { path }))
this.emitClose()
} else {
return
}
} catch (e) {
this.$error(this.$t('MODAL_EXPORT_WALLETS.ERROR.EXPORT_WALLETS'))
} finally {
this.isExporting = false
this.emitClose()
}
}
},
Expand Down

0 comments on commit 1f7953d

Please sign in to comment.