Refactor PiyangoOnay components to replace refreshList logic with window reload. This change simplifies the refresh mechanism after form submission, enhancing user experience by ensuring the latest data is displayed immediately.

This commit is contained in:
burakovec
2025-12-11 14:08:02 +03:00
parent 4a081fe249
commit ddd8594372
2 changed files with 2 additions and 8 deletions

View File

@ -202,10 +202,7 @@
if (dt !== 'errorfalse') { if (dt !== 'errorfalse') {
dialogStore.CloseDialog('deleteonaydurumu') dialogStore.CloseDialog('deleteonaydurumu')
piyangoOnayStore.refreshList = false window.location.reload()
setTimeout(() => {
piyangoOnayStore.refreshList = true
}, 10)
} }
} }

View File

@ -88,11 +88,8 @@ export const usePiyangoOnayService = defineStore('piyangoOnayService', () => {
piyangoOnayValidationStore.formChanged = false piyangoOnayValidationStore.formChanged = false
piyangoStore.lotteryApprove = piyangoStore.lotteryApprove =
piyangoOnayStore.piyangoOnayForm.onayDurumuIslemTipiId piyangoOnayStore.piyangoOnayForm.onayDurumuIslemTipiId
piyangoOnayStore.refreshList = true
piyangoOnayStore.ResetForm() piyangoOnayStore.ResetForm()
setTimeout(() => { window.location.reload()
piyangoOnayStore.loaded = true
}, 10)
} }
} else { } else {
piyangoOnayValidationStore.isFormValid = true piyangoOnayValidationStore.isFormValid = true