- + @@ -97,6 +97,12 @@ export default { onReset() { this.currentTransactionStep = 0 }, + updateTransactions(pagination) { + this.$emit('update-transactions', pagination) + }, + }, + created() { + this.updateTransactions(0) }, } diff --git a/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.spec.js b/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.spec.js index 23c9e2840..7b83f405b 100644 --- a/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.spec.js +++ b/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.spec.js @@ -19,7 +19,6 @@ describe('UserCard_FormUserData', () => { state: { firstName: 'Peter', lastName: 'Lustig', - description: '', }, commit: storeCommitMock, }, @@ -59,10 +58,6 @@ describe('UserCard_FormUserData', () => { expect(wrapper.findAll('div.col').at(4).text()).toBe('Lustig') }) - it('renders the description', () => { - expect(wrapper.findAll('div.col').at(6).text()).toBe('') - }) - describe('edit user data', () => { beforeEach(async () => { await wrapper.find('svg.bi-pencil').trigger('click') @@ -80,11 +75,9 @@ describe('UserCard_FormUserData', () => { it('does not change the userdate when cancel is clicked', async () => { await wrapper.findAll('input').at(0).setValue('Petra') await wrapper.findAll('input').at(1).setValue('Lustiger') - await wrapper.find('textarea').setValue('Keine Nickelbrille') await wrapper.find('svg.bi-x-circle').trigger('click') expect(wrapper.findAll('div.col').at(2).text()).toBe('Peter') expect(wrapper.findAll('div.col').at(4).text()).toBe('Lustig') - expect(wrapper.findAll('div.col').at(6).text()).toBe('') }) it('has a submit button', () => { @@ -108,7 +101,6 @@ describe('UserCard_FormUserData', () => { jest.clearAllMocks() await wrapper.findAll('input').at(0).setValue('Petra') await wrapper.findAll('input').at(1).setValue('Lustiger') - await wrapper.find('textarea').setValue('Keine Nickelbrille') await wrapper.find('form').trigger('keyup') await wrapper.find('button[type="submit"]').trigger('click') await flushPromises() @@ -120,7 +112,6 @@ describe('UserCard_FormUserData', () => { variables: { firstName: 'Petra', lastName: 'Lustiger', - description: 'Keine Nickelbrille', }, }), ) @@ -134,10 +125,6 @@ describe('UserCard_FormUserData', () => { expect(storeCommitMock).toBeCalledWith('lastName', 'Lustiger') }) - it('commits description to store', () => { - expect(storeCommitMock).toBeCalledWith('description', 'Keine Nickelbrille') - }) - it('toasts a success message', () => { expect(toastSuccessMock).toBeCalledWith('settings.name.change-success') }) @@ -155,7 +142,6 @@ describe('UserCard_FormUserData', () => { jest.clearAllMocks() await wrapper.findAll('input').at(0).setValue('Petra') await wrapper.findAll('input').at(1).setValue('Lustiger') - await wrapper.find('textarea').setValue('Keine Nickelbrille') await wrapper.find('form').trigger('keyup') await wrapper.find('button[type="submit"]').trigger('click') await flushPromises() @@ -167,7 +153,6 @@ describe('UserCard_FormUserData', () => { variables: { firstName: 'Petra', lastName: 'Lustiger', - description: 'Keine Nickelbrille', }, }), ) diff --git a/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.vue b/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.vue index 84f8b60df..106529d0d 100644 --- a/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.vue +++ b/frontend/src/views/Pages/UserProfile/UserCard_FormUserData.vue @@ -43,17 +43,6 @@ - - - {{ $t('form.description') }} - - - {{ form.description }} - - - - - @@ -85,7 +74,6 @@ export default { form: { firstName: this.$store.state.firstName, lastName: this.$store.state.lastName, - description: this.$store.state.description, }, loading: true, } @@ -94,14 +82,12 @@ export default { cancelEdit() { this.form.firstName = this.$store.state.firstName this.form.lastName = this.$store.state.lastName - this.form.description = this.$store.state.description this.showUserData = true }, loadSubmitButton() { if ( this.form.firstName !== this.$store.state.firstName || - this.form.lastName !== this.$store.state.lastName || - this.form.description !== this.$store.state.description + this.form.lastName !== this.$store.state.lastName ) { this.loading = false } else { @@ -116,13 +102,11 @@ export default { variables: { firstName: this.form.firstName, lastName: this.form.lastName, - description: this.form.description, }, }) .then(() => { this.$store.commit('firstName', this.form.firstName) this.$store.commit('lastName', this.form.lastName) - this.$store.commit('description', this.form.description) this.showUserData = true this.$toasted.success(this.$t('settings.name.change-success')) }) diff --git a/frontend/src/views/Pages/UserProfile/UserCard_FormUsername.spec.js b/frontend/src/views/Pages/UserProfile/UserCard_FormUsername.spec.js.old similarity index 100% rename from frontend/src/views/Pages/UserProfile/UserCard_FormUsername.spec.js rename to frontend/src/views/Pages/UserProfile/UserCard_FormUsername.spec.js.old diff --git a/frontend/src/views/Pages/UserProfile/UserCard_FormUsername.vue b/frontend/src/views/Pages/UserProfile/UserCard_FormUsername.vue.old similarity index 100% rename from frontend/src/views/Pages/UserProfile/UserCard_FormUsername.vue rename to frontend/src/views/Pages/UserProfile/UserCard_FormUsername.vue.old diff --git a/frontend/src/views/Pages/UserProfileOverview.vue b/frontend/src/views/Pages/UserProfileOverview.vue index e92e23e7b..d01c94373 100644 --- a/frontend/src/views/Pages/UserProfileOverview.vue +++ b/frontend/src/views/Pages/UserProfileOverview.vue @@ -1,5 +1,5 @@