mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 08:55:12 -05:00
refac
This commit is contained in:
1 parent
b01fe7fae2
commit
6f2fc7bc7a
66 files changed
+2206
-2737
No files matched your search
@@ -36,7 +36,7 @@
|
||||
let saving = false;
|
||||
|
||||
export let accessRoles = ['read'];
|
||||
export let labels: Partial<Record<'title' | 'public' | 'private' | 'read' | 'empty', string>> =
|
||||
export let labels: Partial<Record<'title' | 'public' | 'private' | 'read' | 'write' | 'empty', string>> =
|
||||
{};
|
||||
export let accessGrants: AccessGrant[] | any = [];
|
||||
export let accessControl: any = undefined;
|
||||
@@ -629,8 +629,8 @@
|
||||
}
|
||||
}}
|
||||
>
|
||||
<option value="read">{$i18n.t('Read')}</option>
|
||||
<option value="write">{$i18n.t('Write')}</option>
|
||||
<option value="read">{labels.read ?? $i18n.t('Read')}</option>
|
||||
<option value="write">{labels.write ?? $i18n.t('Write')}</option>
|
||||
</select>
|
||||
{:else}
|
||||
<Badge type={'info'} content={labels.read ?? $i18n.t('Read')} />
|
||||
@@ -682,8 +682,8 @@
|
||||
}
|
||||
}}
|
||||
>
|
||||
<option value="read">{$i18n.t('Read')}</option>
|
||||
<option value="write">{$i18n.t('Write')}</option>
|
||||
<option value="read">{labels.read ?? $i18n.t('Read')}</option>
|
||||
<option value="write">{labels.write ?? $i18n.t('Write')}</option>
|
||||
</select>
|
||||
{:else}
|
||||
<Badge type={'info'} content={labels.read ?? $i18n.t('Read')} />
|
||||
|
||||
Reference in new issue
Block a user