mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-23 23:47:57 +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:
commit
a3af179f3f
@ -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: {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user