mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
enh: access control
This commit is contained in:
@@ -1,19 +1,5 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { prompts } from '$lib/stores';
|
||||
|
||||
import { getPrompts } from '$lib/apis/prompts';
|
||||
import Prompts from '$lib/components/workspace/Prompts.svelte';
|
||||
|
||||
onMount(async () => {
|
||||
await Promise.all([
|
||||
(async () => {
|
||||
prompts.set(await getPrompts(localStorage.token));
|
||||
})()
|
||||
]);
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if $prompts !== null}
|
||||
<Prompts />
|
||||
{/if}
|
||||
<Prompts />
|
||||
|
||||
@@ -1,19 +1,7 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { tools } from '$lib/stores';
|
||||
|
||||
import { getTools } from '$lib/apis/tools';
|
||||
import Tools from '$lib/components/workspace/Tools.svelte';
|
||||
|
||||
onMount(async () => {
|
||||
await Promise.all([
|
||||
(async () => {
|
||||
tools.set(await getTools(localStorage.token));
|
||||
})()
|
||||
]);
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if $tools !== null}
|
||||
<Tools />
|
||||
{/if}
|
||||
<Tools />
|
||||
|
||||
Reference in New Issue
Block a user