1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-04 11:17:32 +01:00

refs #84 Clear status and reply to after close new toot modal

This commit is contained in:
AkiraFukushima 2018-03-24 09:43:37 +09:00
parent b5b97d554e
commit 76eff83c8e
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)
}
}
}
}