mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Remove some function emits, remove comments of wip.
This commit is contained in:
parent
2eff5d99cd
commit
2f787043c1
@ -43,14 +43,6 @@
|
||||
</b-col>
|
||||
<b-col class="text-right">
|
||||
<slot name="submit-btn" />
|
||||
<!-- <b-button
|
||||
size="md"
|
||||
variant="success"
|
||||
class="m-3 text-right"
|
||||
@click="$emit('confirm-creation', item)"
|
||||
>
|
||||
{{ $t('overlay.confirm.yes') }}
|
||||
</b-button> -->
|
||||
</b-col>
|
||||
</b-row>
|
||||
</b-container>
|
||||
|
||||
@ -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!')
|
||||
// })
|
||||
// })
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -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()"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user