Merge pull request #2806 from gradido/2802-update-store

fix(admin): update openCreation in case of tab open.
This commit is contained in:
Hannes Heine 2023-03-09 21:17:48 +01:00 committed by GitHub
commit 8d12978fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,6 +410,9 @@ export default {
update({ adminListAllContributions }) {
this.rows = adminListAllContributions.contributionCount
this.items = adminListAllContributions.contributionList
if (this.statusFilter === FILTER_TAB_MAP[0]) {
this.$store.commit('setOpenCreations', adminListAllContributions.contributionCount)
}
},
error({ message }) {
this.toastError(message)