open-webui/src/lib/components/admin/SettingsModal.svelte

44 lines
1.1 KiB
Svelte
Raw Normal View History

2024-02-14 09:17:43 +00:00
<script>
import { getContext } from 'svelte';
2024-02-14 09:17:43 +00:00
import Modal from '../common/Modal.svelte';
2024-03-02 08:33:20 +00:00
import Database from './Settings/Database.svelte';
2024-02-14 09:17:43 +00:00
import General from './Settings/General.svelte';
import Users from './Settings/Users.svelte';
import Banners from '$lib/components/admin/Settings/Banners.svelte';
import { toast } from 'svelte-sonner';
2024-05-28 19:04:19 +00:00
import Pipelines from './Settings/Pipelines.svelte';
const i18n = getContext('i18n');
2024-02-14 09:17:43 +00:00
export let show = false;
let selectedTab = 'general';
</script>
<Modal bind:show>
<div>
2024-05-02 00:55:18 +00:00
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center">{$i18n.t('Admin Settings')}</div>
2024-02-14 09:17:43 +00:00
<button
class="self-center"
on:click={() => {
show = false;
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="w-5 h-5"
>
<path
d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
/>
</svg>
</button>
</div>
</div>
</Modal>