refac
This commit is contained in:
@@ -235,11 +235,7 @@ export const deleteFolderById = async (token: string, id: string, deleteContents
|
||||
return res;
|
||||
};
|
||||
|
||||
export const updateFolderAccessById = async (
|
||||
token: string,
|
||||
id: string,
|
||||
accessGrants: any[]
|
||||
) => {
|
||||
export const updateFolderAccessById = async (token: string, id: string, accessGrants: any[]) => {
|
||||
let error = null;
|
||||
|
||||
const res = await fetch(`${WEBUI_API_BASE_URL}/folders/${id}/access/update`, {
|
||||
|
||||
@@ -59,9 +59,7 @@
|
||||
case 'custom': {
|
||||
// Parse YYYY-MM-DD inputs; end date is inclusive (covers the full day)
|
||||
const start = customStart ? Math.floor(new Date(customStart).getTime() / 1000) : null;
|
||||
const end = customEnd
|
||||
? Math.floor(new Date(customEnd).getTime() / 1000) + day - 1
|
||||
: null;
|
||||
const end = customEnd ? Math.floor(new Date(customEnd).getTime() / 1000) + day - 1 : null;
|
||||
return { start, end };
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -409,7 +409,6 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
{#if permissions.chat.share}
|
||||
<div class="flex flex-col w-full">
|
||||
<div class="flex w-full justify-between my-1">
|
||||
|
||||
@@ -320,9 +320,7 @@
|
||||
<button
|
||||
class="ml-12 flex items-center space-x-2 relative z-0"
|
||||
on:click={() => {
|
||||
const messageElement = document.getElementById(
|
||||
`message-${replyToMessageId}`
|
||||
);
|
||||
const messageElement = document.getElementById(`message-${replyToMessageId}`);
|
||||
if (messageElement) {
|
||||
messageElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
messageElement.classList.add('highlight');
|
||||
|
||||
Reference in New Issue
Block a user