File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' )
You can’t perform that action at this time.
0 commit comments