1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-24 16:01:20 +01:00

Merge pull request #110 from h3poteto/iss-84

closes #84 Clear status and reply to after close new toot modal
This commit is contained in:
AkiraFukushima 2018-03-24 09:44:40 +09:00 committed by GitHub
commit a3af179f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export default {
return this.$store.state.TimelineSpace.NewTootModal.modalOpen
},
set (value) {
this.$store.commit('TimelineSpace/NewTootModal/changeModal', value)
this.$store.dispatch('TimelineSpace/NewTootModal/changeModal', value)
}
},
status: {

View File

@ -43,6 +43,13 @@ const NewTootModal = {
commit('setReplyTo', message)
commit('updateStatus', `@${message.account.acct} `)
commit('changeModal', true)
},
changeModal ({ commit }, value) {
commit('changeModal', value)
if (!value) {
commit('updateStatus', '')
commit('setReplyTo', null)
}
}
}
}