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:
@ -160,7 +160,10 @@
|
||||
|
||||
if (dt !== 'errorfalse') {
|
||||
dialogStore.CloseDialog('deleteonaydurumu')
|
||||
piyangoOnayStore.refreshList = true
|
||||
piyangoOnayStore.refreshList = false
|
||||
setTimeout(() => {
|
||||
piyangoOnayStore.refreshList = true
|
||||
}, 10)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -127,7 +127,11 @@ export const usePiyangoOnayService = defineStore('piyangoOnayService', () => {
|
||||
)
|
||||
|
||||
if (form !== 'errorfalse') {
|
||||
piyangoOnayStore.refreshList = true
|
||||
piyangoOnayStore.refreshList = false
|
||||
setTimeout(() => {
|
||||
piyangoOnayStore.refreshList = true
|
||||
}, 10)
|
||||
piyangoOnayStore.onayFormPanel = false
|
||||
}
|
||||
} else {
|
||||
piyangoOnayValidationStore.isPanelFormValid = true
|
||||
|
||||
Reference in New Issue
Block a user