Merge pull request #1423 from gradido/1400-No-GDD-value-when-reloading-User-Profile

add updateTransactions function for GDD balance if reload page
This commit is contained in:
Alexander Friedland 2022-02-07 12:28:23 +01:00 committed by GitHub
commit 3f89dc1e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -97,6 +97,12 @@ export default {
onReset() {
this.currentTransactionStep = 0
},
updateTransactions(pagination) {
this.$emit('update-transactions', pagination)
},
},
created() {
this.updateTransactions(0)
},
}
</script>

View File

@ -34,6 +34,14 @@ export default {
balance: { type: Number, default: 0 },
transactionCount: { type: Number, default: 0 },
},
methods: {
updateTransactions(pagination) {
this.$emit('update-transactions', pagination)
},
},
created() {
this.updateTransactions(0)
},
}
</script>
<style>