From 4fbdc27993570b3f8a025276c30c66044c40166a Mon Sep 17 00:00:00 2001 From: Krystian Date: Tue, 4 Mar 2025 15:33:46 +0100 Subject: [PATCH] gallery --- src/views/products/View.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/products/View.vue b/src/views/products/View.vue index cd32910a..a4b42e04 100644 --- a/src/views/products/View.vue +++ b/src/views/products/View.vue @@ -160,7 +160,7 @@

{{ $t('rewardImagesTitle') }}

- +
@@ -395,6 +395,7 @@ export default defineComponent({ await this.fetch() this.setEditedLang(this.$accessor.languages.apiLanguage?.id || '') }, + methods: { handleSubmit(callback: Function) { ;(this.$refs.form as any).validate().then((success: boolean) => { @@ -485,6 +486,7 @@ export default defineComponent({ : await this.$accessor.products.update({ id: this.id, item: apiPayload }) ;(this.$refs.gallery as any).clearMediaToDelete() + ;(this.$refs.rewards as any).clearMediaToDelete() ;(this.$refs.banner as any)?.clearMediaToDelete?.() if (!item) throw new Error('Product was not saved')