Skip to content

Commit 4fbdc27

Browse files
gallery
1 parent d2224a1 commit 4fbdc27

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/views/products/View.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
</Card>
161161
<Card class="product-page__rewards">
162162
<h2 class="product-page__subtitle">{{ $t('rewardImagesTitle') }}</h2>
163-
<Gallery ref="gallery" v-model="form.reward_images" :disabled="!canModify" />
163+
<Gallery ref="rewards" v-model="form.reward_images" :disabled="!canModify" />
164164
</Card>
165165
</form>
166166
</ValidationObserver>
@@ -395,6 +395,7 @@ export default defineComponent({
395395
await this.fetch()
396396
this.setEditedLang(this.$accessor.languages.apiLanguage?.id || '')
397397
},
398+
398399
methods: {
399400
handleSubmit(callback: Function) {
400401
;(this.$refs.form as any).validate().then((success: boolean) => {
@@ -485,6 +486,7 @@ export default defineComponent({
485486
: await this.$accessor.products.update({ id: this.id, item: apiPayload })
486487
487488
;(this.$refs.gallery as any).clearMediaToDelete()
489+
;(this.$refs.rewards as any).clearMediaToDelete()
488490
;(this.$refs.banner as any)?.clearMediaToDelete?.()
489491
490492
if (!item) throw new Error('Product was not saved')

0 commit comments

Comments
 (0)