Update refreshList logic in PiyangoOnay components to prevent immediate refresh. Introduce a timeout before setting refreshList to true after form submission, ensuring smoother user experience.

This commit is contained in:
burakovec
2025-12-10 12:34:12 +03:00
parent bd93496e4d
commit e8f914b321
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -127,7 +127,11 @@ export const usePiyangoOnayService = defineStore('piyangoOnayService', () => {
)
if (form !== 'errorfalse') {
piyangoOnayStore.refreshList = false
setTimeout(() => {
piyangoOnayStore.refreshList = true
}, 10)
piyangoOnayStore.onayFormPanel = false
}
} else {
piyangoOnayValidationStore.isPanelFormValid = true