feat: Allow navigating to user group from user edit

This commit allow navigating from user edit to user group, allowing faster updates to groups.
The querystringValue function was moved to lib/utils to reuse it in multiple places.
This commit is contained in:
Athanasios Oikonomou
2025-08-12 01:08:56 +03:00
committed by Athanasios Oikonomou
parent 62506b1955
commit 5543f30c49
4 changed files with 21 additions and 8 deletions
+1 -7
View File
@@ -14,7 +14,7 @@
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
import { WEBUI_NAME, config, user, socket } from '$lib/stores';
import { generateInitialsImage, canvasPixelTest } from '$lib/utils';
import { generateInitialsImage, canvasPixelTest, querystringValue } from '$lib/utils';
import Spinner from '$lib/components/common/Spinner.svelte';
import OnBoarding from '$lib/components/OnBoarding.svelte';
@@ -33,12 +33,6 @@
let ldapUsername = '';
const querystringValue = (key) => {
const querystring = window.location.search;
const urlParams = new URLSearchParams(querystring);
return urlParams.get(key);
};
const setSessionUser = async (sessionUser) => {
if (sessionUser) {
console.log(sessionUser);