change state if messagesCount 0

This commit is contained in:
ogerly 2022-08-29 12:54:32 +02:00
parent efaf02facc
commit 61d763030a

View File

@ -95,7 +95,10 @@ export default {
this.item = item this.item = item
}, },
updateState(id) { updateState(id) {
this.pendingCreations.find((item) => item.id === id).state = 'IN_PROGRESS' this.pendingCreations.find((value) => {
value.state = 'IN_PROGRESS'
value.messageCount = value.messageCount + 1
})
}, },
}, },
computed: { computed: {