From a5eeac7230c1f5b87508cf51a9a97fb36f8e5b54 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Wed, 1 Aug 2018 21:32:21 +0900
Subject: [PATCH] fix: Close new toot modal when post
---
.../components/TimelineSpace/Modals/NewToot.vue | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/src/renderer/components/TimelineSpace/Modals/NewToot.vue b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
index f7697e49..b736b59d 100644
--- a/src/renderer/components/TimelineSpace/Modals/NewToot.vue
+++ b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
@@ -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()