diff --git a/admin/src/components/Overlay.vue b/admin/src/components/Overlay.vue index bb95766c8..d2086dd58 100644 --- a/admin/src/components/Overlay.vue +++ b/admin/src/components/Overlay.vue @@ -43,14 +43,6 @@ - diff --git a/admin/src/pages/CreationConfirm.spec.js b/admin/src/pages/CreationConfirm.spec.js index df93952e2..d47233ded 100644 --- a/admin/src/pages/CreationConfirm.spec.js +++ b/admin/src/pages/CreationConfirm.spec.js @@ -314,52 +314,6 @@ describe('CreationConfirm', () => { expect(toastErrorSpy).toBeCalledWith('Ouchhh!') }) }) - // describe('admin confirms deny', () => { - // beforeEach(async () => { - // spy.mockImplementation(() => Promise.resolve('some value')) - // await wrapper.findAll('tr').at(1).findAll('button').at(3).trigger('click') - // }) - - // it('opens a modal', () => {}) - - // it('calls the adminDeleteContribution mutation', () => { - // expect(adminDenyContributionMock).toBeCalledWith({ id: 1 }) - // }) - - // it('commits openCreationsMinus to store', () => { - // expect(storeCommitMock).toBeCalledWith('openCreationsMinus', 1) - // }) - - // it('toasts a success message', () => { - // expect(toastSuccessSpy).toBeCalledWith('creation_form.toasted_denied') - // }) - // }) - - // describe('admin cancels deny', () => { - // beforeEach(async () => { - // spy = jest.spyOn(wrapper.vm.$bvModal, 'msgBoxConfirm') - // spy.mockImplementation(() => Promise.resolve(false)) - // await wrapper.findAll('tr').at(1).findAll('button').at(3).trigger('click') - // }) - - // it('does not call the adminDeleteContribution mutation', () => { - // expect(adminDenyContributionMock).not.toBeCalled() - // }) - // }) - - // describe('deny creation with error', () => { - // let spy - - // beforeEach(async () => { - // spy = jest.spyOn(wrapper.vm.$bvModal, 'msgBoxConfirm') - // spy.mockImplementation(() => Promise.resolve('some value')) - // await wrapper.findAll('tr').at(1).findAll('button').at(0).trigger('click') - // }) - - // it('toasts an error message', () => { - // expect(toastErrorSpy).toBeCalledWith('Ouchhh!') - // }) - // }) }) }) }) diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index 08514752d..0beb9ac19 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -23,8 +23,6 @@ class="mt-4" :items="pendingCreations" :fields="fields" - @deny-creation="denyCreation" - @remove-creation="deleteCreation" @show-overlay="showOverlay" @update-state="updateState" @update-contributions="$apollo.queries.PendingContributions.refetch()"