diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json index f1c15bb3f..382cfcb95 100644 --- a/admin/src/locales/de.json +++ b/admin/src/locales/de.json @@ -56,7 +56,7 @@ "deleted": "gelöscht", "deleted_user": "Alle gelöschten Nutzer", "delete_user": "Nutzer löschen", - "deny": "Ablehnen", + "reject": "Ablehnen", "edit": "Bearbeiten", "enabled": "aktiviert", "error": "Fehler", diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json index bcaa50dab..d2c65637c 100644 --- a/admin/src/locales/en.json +++ b/admin/src/locales/en.json @@ -38,7 +38,7 @@ "enter_text": "Enter text", "form": "Creation form", "min_characters": "Enter at least 10 characters", - "rejectNow": "Do you really want to deny this contribution to the community?", + "rejectNow": "Do you really want to reject this contribution to the community?", "reset": "Reset", "select_month": "Select month", "select_value": "Select amount", @@ -56,7 +56,7 @@ "deleted": "deleted", "deleted_user": "All deleted user", "delete_user": "Delete user", - "deny": "Deny", + "reject": "Reject", "edit": "Edit", "enabled": "enabled", "error": "Error", diff --git a/admin/src/pages/CreationConfirm.spec.js b/admin/src/pages/CreationConfirm.spec.js index d4f54e3a3..e5748d489 100644 --- a/admin/src/pages/CreationConfirm.spec.js +++ b/admin/src/pages/CreationConfirm.spec.js @@ -76,7 +76,7 @@ describe('CreationConfirm', () => { const listUnconfirmedContributionsMock = jest.fn() const adminDeleteContributionMock = jest.fn() - const adminDenyContributionMock = jest.fn() + const adminRejectContributionMock = jest.fn() const confirmContributionMock = jest.fn() mockClient.setRequestHandler( @@ -93,7 +93,7 @@ describe('CreationConfirm', () => { mockClient.setRequestHandler( rejectContribution, - adminDenyContributionMock.mockResolvedValue({ data: { rejectContribution: true } }), + adminRejectContributionMock.mockResolvedValue({ data: { rejectContribution: true } }), ) mockClient.setRequestHandler( @@ -266,7 +266,7 @@ describe('CreationConfirm', () => { }) it('calls the adminDeleteContribution mutation', () => { - expect(adminDenyContributionMock).toBeCalledWith({ id: 1 }) + expect(adminRejectContributionMock).toBeCalledWith({ id: 1 }) }) it('commits openCreationsMinus to store', () => { @@ -286,7 +286,7 @@ describe('CreationConfirm', () => { }) it('does not call the adminDeleteContribution mutation', () => { - expect(adminDenyContributionMock).not.toBeCalled() + expect(adminRejectContributionMock).not.toBeCalled() }) }) }) diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index 3acfa6bda..178d86a6c 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -132,7 +132,7 @@ export default { { key: 'moderator', label: this.$t('moderator') }, { key: 'editCreation', label: this.$t('edit') }, { key: 'confirm', label: this.$t('save') }, - { key: 'deny', label: this.$t('deny') }, + { key: 'reject', label: this.$t('reject') }, ] }, },