qdadm 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -508,7 +508,7 @@ export function useListPageBuilder(config = {}) {
|
|
|
508
508
|
function onFiltersChanged() {
|
|
509
509
|
page.value = 1
|
|
510
510
|
loadItems()
|
|
511
|
-
// Persist filters to session storage
|
|
511
|
+
// Persist filters + search to session storage
|
|
512
512
|
if (persistFilters) {
|
|
513
513
|
const toPersist = {}
|
|
514
514
|
for (const [name, value] of Object.entries(filterValues.value)) {
|
|
@@ -517,6 +517,10 @@ export function useListPageBuilder(config = {}) {
|
|
|
517
517
|
toPersist[name] = value
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
+
// Also persist search query
|
|
521
|
+
if (searchQuery.value) {
|
|
522
|
+
toPersist._search = searchQuery.value
|
|
523
|
+
}
|
|
520
524
|
setSessionFilters(filterSessionKey, toPersist)
|
|
521
525
|
}
|
|
522
526
|
// Sync to URL query params
|
|
@@ -913,8 +917,17 @@ export function useListPageBuilder(config = {}) {
|
|
|
913
917
|
searchQuery.value = route.query.search
|
|
914
918
|
}
|
|
915
919
|
|
|
916
|
-
// Priority 2: Session storage (only for filters not in URL)
|
|
917
|
-
const
|
|
920
|
+
// Priority 2: Session storage (only for filters/search not in URL)
|
|
921
|
+
const sessionData = persistFilters ? getSessionFilters(filterSessionKey) : null
|
|
922
|
+
|
|
923
|
+
// Extract search from session (stored as _search)
|
|
924
|
+
if (sessionData?._search && !route.query.search) {
|
|
925
|
+
searchQuery.value = sessionData._search
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
// Remove _search from session data before merging with filters
|
|
929
|
+
const sessionFilters = sessionData ? { ...sessionData } : null
|
|
930
|
+
if (sessionFilters) delete sessionFilters._search
|
|
918
931
|
|
|
919
932
|
// Merge: URL takes priority over session
|
|
920
933
|
const restoredFilters = { ...sessionFilters, ...urlFilters }
|