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

Commit

Permalink
fix: does not show success message when canceling a save file dialog (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brenopolanski committed May 22, 2020
1 parent 54422dc commit bb727cb
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,14 @@ export default {
try {
const path = await this.electron_writeFile(raw, defaultPath)
this.$success(this.$t('TRANSACTION.SUCCESS.SAVE_OFFLINE', { path }))
} catch (e) {
this.$error(this.$t('TRANSACTION.ERROR.SAVE_OFFLINE', { error: e.message }))
if (path) {
this.$success(this.$t('TRANSACTION.SUCCESS.SAVE_OFFLINE', { path }))
} else {
return
}
} catch (error) {
this.$error(this.$t('TRANSACTION.ERROR.SAVE_OFFLINE', { error: error.message }))
}
}
}
Expand All @@ -181,7 +186,7 @@ export default {

<style lang="postcss" scoped>
.TransactionConfirm__send-button:hover > span {
@apply .bg-blue
@apply .bg-blue;
}
.TransactionConfirm__send-button,
.TransactionConfirm__send-button > span {
Expand Down

0 comments on commit bb727cb

Please sign in to comment.