mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-27 07:39:20 -05:00
refac
This commit is contained in:
1 parent
7b7dba6eec
commit
7d205a86dc
76 files changed
+557
-500
No files matched your search
@@ -10,11 +10,11 @@
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import MapSelector from '$lib/components/common/Valves/MapSelector.svelte';
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let show = false;
|
||||
export let variables = {};
|
||||
export let title = $i18n.t('Input Variables');
|
||||
export let title: string | undefined = undefined;
|
||||
|
||||
export let onSave = (e) => {};
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<div>
|
||||
<div class=" flex justify-between dark:text-gray-300 px-4 pt-3 pb-1">
|
||||
<div class=" text-sm font-medium self-center">
|
||||
{title}
|
||||
{title ?? $i18n.t('Input Variables')}
|
||||
</div>
|
||||
<button
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
|
||||
Reference in new issue
Block a user