mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove update balance method and event. We want to have the data always from the backend and do no calculation in the frontend
This commit is contained in:
parent
0a3f80ddc9
commit
e08e1b7ea8
@ -140,14 +140,6 @@ describe('DashboardLayoutGdd', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('update balance', () => {
|
||||
it('updates the amount correctelly', async () => {
|
||||
await wrapper.findComponent({ ref: 'router-view' }).vm.$emit('update-balance', 5)
|
||||
await flushPromises()
|
||||
expect(wrapper.vm.balance).toBe(-5)
|
||||
})
|
||||
})
|
||||
|
||||
describe('update transactions', () => {
|
||||
beforeEach(async () => {
|
||||
apolloMock.mockResolvedValue({
|
||||
|
||||
@ -27,7 +27,6 @@
|
||||
:transactionLinkCount="transactionLinkCount"
|
||||
:pending="pending"
|
||||
:decayStartBlock="decayStartBlock"
|
||||
@update-balance="updateBalance"
|
||||
@update-transactions="updateTransactions"
|
||||
></router-view>
|
||||
</fade-transition>
|
||||
@ -112,9 +111,6 @@ export default {
|
||||
// what to do when loading balance fails?
|
||||
})
|
||||
},
|
||||
updateBalance(ammount) {
|
||||
this.balance -= ammount
|
||||
},
|
||||
admin() {
|
||||
window.location.assign(CONFIG.ADMIN_AUTH_URL.replace('{token}', this.$store.state.token))
|
||||
this.$store.dispatch('logout') // logout without redirect
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user