mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 14:30:20 -05:00
chore: format
This commit is contained in:
1 parent
8dff97ccb1
commit
d4e7005954
2 files changed
+3
-4
No files matched your search
@@ -222,7 +222,8 @@
|
||||
<div class="mt-5 flex justify-between gap-1.5">
|
||||
{#each confirmFirst ? ['confirm', 'cancel'] : ['cancel', 'confirm'] as action (action)}
|
||||
<button
|
||||
class="flex h-7 w-full items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 {action === primaryAction
|
||||
class="flex h-7 w-full items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 {action ===
|
||||
primaryAction
|
||||
? 'bg-gray-900 text-white hover:bg-black dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white'
|
||||
: 'bg-gray-100 hover:bg-gray-100/70 text-gray-800 dark:bg-gray-850 dark:hover:bg-gray-850/60 dark:text-white'}"
|
||||
on:click={action === 'confirm' ? confirmHandler : cancelHandler}
|
||||
|
||||
@@ -88,9 +88,7 @@
|
||||
|
||||
if (!redirectPath) {
|
||||
redirectPath =
|
||||
sessionStorage.getItem('auth:continue') ||
|
||||
$page.url.searchParams.get('redirect') ||
|
||||
'/';
|
||||
sessionStorage.getItem('auth:continue') || $page.url.searchParams.get('redirect') || '/';
|
||||
}
|
||||
|
||||
await goto(redirectPath);
|
||||
|
||||
Reference in new issue
Block a user