зеркало из https://github.com/nextcloud/spreed.git
Immediately update poll if closed
Signed-off-by: Marco Ambrosini <marcoambrosini@icloud.com>
This commit is contained in:
Родитель
8f45fd68a1
Коммит
0571fdfd9d
|
@ -375,7 +375,7 @@ export default {
|
|||
},
|
||||
|
||||
openPoll() {
|
||||
if (this.selfHasVoted) {
|
||||
if (this.selfHasVoted || this.pollIsClosed) {
|
||||
this.modalPage = 'results'
|
||||
} else {
|
||||
this.modalPage = 'voting'
|
||||
|
|
|
@ -422,6 +422,13 @@ const actions = {
|
|||
})
|
||||
}
|
||||
|
||||
if (message.systemMessage === 'poll_closed') {
|
||||
context.dispatch('getPollData', {
|
||||
token: message.token,
|
||||
pollId: message.messageParameters.poll.id,
|
||||
})
|
||||
}
|
||||
|
||||
context.commit('addMessage', message)
|
||||
|
||||
if ((message.messageType === 'comment' && message.message === '{file}' && message.messageParameters?.file)
|
||||
|
|
Загрузка…
Ссылка в новой задаче