|
|
@ -35,9 +35,9 @@ watch(isNew, async (nextVal, prevVal) => { |
|
|
|
const reloadViewDataTrigger = inject(ReloadViewDataHookInj)! |
|
|
|
const reloadViewDataTrigger = inject(ReloadViewDataHookInj)! |
|
|
|
|
|
|
|
|
|
|
|
// override reload trigger and use it to reload row |
|
|
|
// override reload trigger and use it to reload row |
|
|
|
const reloadHook = createEventHook() |
|
|
|
const reloadHook = createEventHook<boolean | void>() |
|
|
|
|
|
|
|
|
|
|
|
reloadHook.on((shouldShowLoading: boolean) => { |
|
|
|
reloadHook.on((shouldShowLoading) => { |
|
|
|
if (isNew.value) return |
|
|
|
if (isNew.value) return |
|
|
|
reloadViewDataTrigger?.trigger(shouldShowLoading) |
|
|
|
reloadViewDataTrigger?.trigger(shouldShowLoading) |
|
|
|
}) |
|
|
|
}) |
|
|
|