This repository was archived by the owner on Jun 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 66 :dusk =" `table-${name}`"
77 class =" min-w-0"
88 :class =" {'opacity-75': isVisiting}"
9- :disabled =" preventOverlappingRequests && isVisiting"
109 >
1110 <div class =" flex flex-row flex-wrap sm:flex-nowrap justify-start px-4 sm:px-0" >
1211 <div class =" order-2 sm:order-1 mr-2 sm:mr-4" >
@@ -268,11 +267,17 @@ const props = defineProps({
268267 },
269268});
270269
271- const queryBuilderProps = ref (
272- $inertia .page .props .queryBuilderProps
270+ const updates = ref (0 )
271+
272+ const queryBuilderProps = computed (() => {
273+ let data = $inertia .page .props .queryBuilderProps
273274 ? $inertia .page .props .queryBuilderProps [props .name ] || {}
274275 : {}
275- );
276+
277+ data ._updates = updates .value ;
278+
279+ return data;
280+ })
276281
277282const queryBuilderData = ref (queryBuilderProps .value );
278283
@@ -365,8 +370,6 @@ function showSearchInput(key) {
365370 forcedVisibleSearchInputs .value .push (key);
366371}
367372
368- const updates = ref (0 )
369-
370373const canBeReset = computed (() => {
371374 if (forcedVisibleSearchInputs .value .length > 0 ){
372375 return true ;
@@ -614,7 +617,6 @@ function visit(url) {
614617 },
615618 onSuccess () {
616619 if (" queryBuilderProps" in $inertia .page .props ){
617- queryBuilderProps .value = $inertia .page .props .queryBuilderProps [props .name ] || {}
618620 queryBuilderData .value .cursor = queryBuilderProps .value .cursor
619621 queryBuilderData .value .page = queryBuilderProps .value .page
620622 }
You can’t perform that action at this time.
0 commit comments