feat(currencies,preferences,export,misc): currencies, rates, attachments, link types, preferences, export, administrations, recurring and webhooks
This commit is contained in:
1 parent
89bbf56062
commit
f8a5fd6c6d
47 files changed
+4496
-8
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { goto } from "$app/navigation";
|
||||
import { page } from "$app/state";
|
||||
|
||||
export function setQuery(values: Record<string, string | null | undefined>) {
|
||||
const url = new URL(page.url.href);
|
||||
for (const [key, value] of Object.entries(values)) {
|
||||
if (value) {
|
||||
url.searchParams.set(key, value);
|
||||
} else {
|
||||
url.searchParams.delete(key);
|
||||
}
|
||||
}
|
||||
return goto(url, { replace: true, state: page.state });
|
||||
}
|
||||
Reference in new issue
Block a user