Merge pull request #3682 from nextcloud/bug/increase-file-count-after-sharing

Increase file count after sharing
This commit is contained in:
Julius Härtl
2022-05-11 16:40:42 +02:00
committed by GitHub
7 changed files with 125 additions and 37 deletions

View File

@@ -252,6 +252,12 @@ export default {
Vue.set(state.cards[existingIndex], 'lastModified', Date.now() / 1000)
}
},
cardSetAttachmentCount(state, { cardId, count }) {
const existingIndex = state.cards.findIndex(_card => _card.id === cardId)
if (existingIndex !== -1) {
Vue.set(state.cards[existingIndex], 'attachmentCount', count)
}
},
cardIncreaseAttachmentCount(state, cardId) {
const existingIndex = state.cards.findIndex(_card => _card.id === cardId)
if (existingIndex !== -1) {