This repository was archived by the owner on Jun 27, 2024. It is now read-only.
File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 6
6
:dusk =" `table-${name}`"
7
7
class =" min-w-0"
8
8
:class =" {'opacity-75': isVisiting}"
9
- :disabled =" preventOverlappingRequests && isVisiting"
10
9
>
11
10
<div class =" flex flex-row flex-wrap sm:flex-nowrap justify-start px-4 sm:px-0" >
12
11
<div class =" order-2 sm:order-1 mr-2 sm:mr-4" >
@@ -268,11 +267,17 @@ const props = defineProps({
268
267
},
269
268
});
270
269
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
273
274
? $inertia .page .props .queryBuilderProps [props .name ] || {}
274
275
: {}
275
- );
276
+
277
+ data ._updates = updates .value ;
278
+
279
+ return data;
280
+ })
276
281
277
282
const queryBuilderData = ref (queryBuilderProps .value );
278
283
@@ -365,8 +370,6 @@ function showSearchInput(key) {
365
370
forcedVisibleSearchInputs .value .push (key);
366
371
}
367
372
368
- const updates = ref (0 )
369
-
370
373
const canBeReset = computed (() => {
371
374
if (forcedVisibleSearchInputs .value .length > 0 ){
372
375
return true ;
@@ -614,7 +617,6 @@ function visit(url) {
614
617
},
615
618
onSuccess () {
616
619
if (" queryBuilderProps" in $inertia .page .props ){
617
- queryBuilderProps .value = $inertia .page .props .queryBuilderProps [props .name ] || {}
618
620
queryBuilderData .value .cursor = queryBuilderProps .value .cursor
619
621
queryBuilderData .value .page = queryBuilderProps .value .page
620
622
}
You can’t perform that action at this time.
0 commit comments