mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-04 03:07:36 +01:00
refs #84 Clear status and reply to after close new toot modal
This commit is contained in:
parent
b5b97d554e
commit
76eff83c8e
@ -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…
x
Reference in New Issue
Block a user