diff --git a/admin/src/components/Tables/OpenCreationsTable.vue b/admin/src/components/Tables/OpenCreationsTable.vue
index 5b03d8970..d141fc0a5 100644
--- a/admin/src/components/Tables/OpenCreationsTable.vue
+++ b/admin/src/components/Tables/OpenCreationsTable.vue
@@ -37,6 +37,18 @@
+
+
+
+
+
+
+
-
-
-
-
-
-
-
{
- if (value) {
- await this.$apollo
- .mutate({
- mutation: denyContribution,
- variables: {
- id: item.id,
- },
- })
- .then((result) => {
- this.updatePendingCreations(item.id)
- this.toastSuccess(this.$t('creation_form.toasted_denied'))
- })
- .catch((error) => {
- this.toastError(error.message)
- })
- }
- })
+ denyCreation() {
+ this.$apollo
+ .mutate({
+ mutation: denyContribution,
+ variables: {
+ id: this.item.id,
+ },
+ })
+ .then((result) => {
+ this.overlay = false
+ this.updatePendingCreations(this.item.id)
+ this.toastSuccess(this.$t('creation_form.toasted_denied'))
+ })
+ .catch((error) => {
+ this.overlay = false
+ this.toastError(error.message)
+ })
},
confirmCreation() {
this.$apollo
@@ -148,8 +146,8 @@ 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: 'confirm', label: this.$t('save') },
]
},
overlayTitle() {