mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-02 12:14:48 +02:00
chore: format
This commit is contained in:
@@ -214,11 +214,23 @@
|
||||
<div>
|
||||
<div class="mb-1 text-xs text-gray-500">{$i18n.t('When')}</div>
|
||||
<div class="flex items-center gap-2 text-sm flex-wrap">
|
||||
<input type="date" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={startDate} />
|
||||
<input
|
||||
type="date"
|
||||
class="bg-transparent outline-hidden dark:scheme-dark"
|
||||
bind:value={startDate}
|
||||
/>
|
||||
{#if !allDay}
|
||||
<input type="time" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={startTime} />
|
||||
<input
|
||||
type="time"
|
||||
class="bg-transparent outline-hidden dark:scheme-dark"
|
||||
bind:value={startTime}
|
||||
/>
|
||||
<span class="text-gray-300 dark:text-gray-600">–</span>
|
||||
<input type="time" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={endTime} />
|
||||
<input
|
||||
type="time"
|
||||
class="bg-transparent outline-hidden dark:scheme-dark"
|
||||
bind:value={endTime}
|
||||
/>
|
||||
{/if}
|
||||
<label class="flex items-center gap-1.5 cursor-pointer text-xs text-gray-400 ml-auto">
|
||||
<input type="checkbox" class="accent-blue-500" bind:checked={allDay} />
|
||||
|
||||
@@ -793,9 +793,7 @@
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
<div
|
||||
class="translate-y-[0.5px] flex min-w-0 flex-1 items-center gap-1.5 pr-6 text-start"
|
||||
>
|
||||
<div class="translate-y-[0.5px] flex min-w-0 flex-1 items-center gap-1.5 pr-6 text-start">
|
||||
{#if edit}
|
||||
<input
|
||||
id="folder-{folderId}-input"
|
||||
|
||||
@@ -309,7 +309,10 @@
|
||||
commitAccessGrants(next);
|
||||
};
|
||||
|
||||
const togglePrincipalWrite = (principalType: 'user' | 'group' | 'anyone', principalId: string) => {
|
||||
const togglePrincipalWrite = (
|
||||
principalType: 'user' | 'group' | 'anyone',
|
||||
principalId: string
|
||||
) => {
|
||||
let next = [...currentGrants()];
|
||||
const hasWrite = hasPrincipalGrant(principalType, principalId, 'write');
|
||||
if (hasWrite) {
|
||||
|
||||
@@ -75,7 +75,10 @@ export const registerFolderRefreshHandler = (handler: FolderRefreshHandler) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const refreshFolderChatLists = async (folderId?: string | null, chat?: ChatListItem | null) => {
|
||||
export const refreshFolderChatLists = async (
|
||||
folderId?: string | null,
|
||||
chat?: ChatListItem | null
|
||||
) => {
|
||||
await Promise.all([...folderRefreshHandlers].map((handler) => handler(folderId, chat)));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user