Skip to content

Commit

Permalink
[fix]: fix save button and export notification
Browse files Browse the repository at this point in the history
  • Loading branch information
TankNee committed Jul 8, 2021
1 parent dff4255 commit 9b933b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src-electron/main-process/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default {
msg: err.msg,
type: 'negative',
icon: 'delete'
}).catch(err => throw err)
}, event).catch(err => throw err)
})
}).catch(err => throw err)
}).catch(err => throw err)
Expand All @@ -98,14 +98,14 @@ export default {
type: 'positive',
icon: 'check',
filePath: result.filePath
}).catch(err => throw err)
}, event).catch(err => throw err)
})
.catch(err => {
sendNotification({
msg: err.msg,
type: 'negative',
icon: 'delete'
}).catch(err => throw err)
}, event).catch(err => throw err)
})
}).catch(err => throw err)
}).catch(err => throw err)
Expand Down Expand Up @@ -141,14 +141,14 @@ export default {
type: 'positive',
icon: 'check',
filePath: directoryPath
}).catch(err => throw err)
}, event).catch(err => throw err)
})
.catch(err => {
sendNotification({
msg: err.msg,
type: 'negative',
icon: 'delete'
}).catch(err => throw err)
}, event).catch(err => throw err)
})
}).catch(err => throw err)
}).catch(err => throw err)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default {
},
methods: {
refreshCurrentNote: function () {
bus.$emit(events.EDIT_SHORTCUT_CALL.save)
bus.$emit(events.NOTE_SHORTCUT_CALL.save)
},
outlineDrawerChangeHandler: function (state) {
this.isOutlineShow = state
Expand Down

0 comments on commit 9b933b8

Please sign in to comment.