mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
5eaee44daa
commit
f25a144e09
1 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import DOMPurify from 'dompurify';
|
||||||
|
import { marked } from 'marked';
|
||||||
|
|
||||||
import { getAdminDetails } from '$lib/apis/auths';
|
import { getAdminDetails } from '$lib/apis/auths';
|
||||||
import { onMount, tick, getContext } from 'svelte';
|
import { onMount, tick, getContext } from 'svelte';
|
||||||
import { config } from '$lib/stores';
|
import { config } from '$lib/stores';
|
||||||
|
|
@ -38,7 +41,11 @@
|
||||||
style="white-space: pre-wrap;"
|
style="white-space: pre-wrap;"
|
||||||
>
|
>
|
||||||
{#if ($config?.ui?.pending_user_overlay_content ?? '').trim() !== ''}
|
{#if ($config?.ui?.pending_user_overlay_content ?? '').trim() !== ''}
|
||||||
{$config.ui.pending_user_overlay_content}
|
{@html marked.parse(
|
||||||
|
DOMPurify.sanitize(
|
||||||
|
($config?.ui?.pending_user_overlay_content ?? '').replace(/\n/g, '<br>')
|
||||||
|
)
|
||||||
|
)}
|
||||||
{:else}
|
{:else}
|
||||||
{$i18n.t('Your account status is currently pending activation.')}{'\n'}{$i18n.t(
|
{$i18n.t('Your account status is currently pending activation.')}{'\n'}{$i18n.t(
|
||||||
'To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.'
|
'To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue