Skip to content

Commit

Permalink
fix: Close new toot modal when post
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Aug 1, 2018
1 parent 94071ab commit a5eeac7
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/renderer/components/TimelineSpace/Modals/NewToot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,29 +169,14 @@ export default {
})
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
this.$store.dispatch('TimelineSpace/Modals/NewToot/postToot', form)
.then(() => {
this.close()
loading.close()
this.$message({
message: 'Toot',
type: 'success'
})
})
.catch(() => {
loading.close()
this.$message({
message: 'Could not toot',
type: 'error'
})
})
this.close()
},
selectImage () {
this.$refs.image.click()
Expand Down

0 comments on commit a5eeac7

Please sign in to comment.