mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
feat: models?id= support for admin settings
This commit is contained in:
parent
a519c62250
commit
57f9eadd75
1 changed files with 7 additions and 1 deletions
|
|
@ -14,6 +14,8 @@
|
|||
toggleModelById,
|
||||
updateModelById
|
||||
} from '$lib/apis/models';
|
||||
import { copyToClipboard } from '$lib/utils';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
import { getModels } from '$lib/apis';
|
||||
import Search from '$lib/components/icons/Search.svelte';
|
||||
|
|
@ -34,7 +36,6 @@
|
|||
import EllipsisHorizontal from '$lib/components/icons/EllipsisHorizontal.svelte';
|
||||
import EyeSlash from '$lib/components/icons/EyeSlash.svelte';
|
||||
import Eye from '$lib/components/icons/Eye.svelte';
|
||||
import { copyToClipboard } from '$lib/utils';
|
||||
|
||||
let shiftKey = false;
|
||||
|
||||
|
|
@ -205,6 +206,11 @@
|
|||
|
||||
onMount(async () => {
|
||||
await init();
|
||||
const id = $page.url.searchParams.get('id');
|
||||
|
||||
if (id) {
|
||||
selectedModelId = id;
|
||||
}
|
||||
|
||||
const onKeyDown = (event) => {
|
||||
if (event.key === 'Shift') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue