mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -645,7 +645,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<StatusHistory
|
<StatusHistory
|
||||||
statusHistory={message?.statusHistory}
|
statusHistory={message?.statusHistory}
|
||||||
showHistory={message?.content === ''}
|
expand={message?.content === ''}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{#if message?.files && message.files?.filter((f) => f.type === 'image').length > 0}
|
{#if message?.files && message.files?.filter((f) => f.type === 'image').length > 0}
|
||||||
|
|||||||
@@ -4,7 +4,15 @@
|
|||||||
|
|
||||||
import StatusItem from './StatusHistory/StatusItem.svelte';
|
import StatusItem from './StatusHistory/StatusItem.svelte';
|
||||||
export let statusHistory = [];
|
export let statusHistory = [];
|
||||||
export let showHistory = true;
|
export let expand = false;
|
||||||
|
|
||||||
|
let showHistory = true;
|
||||||
|
|
||||||
|
$: if (expand) {
|
||||||
|
showHistory = true;
|
||||||
|
} else {
|
||||||
|
showHistory = false;
|
||||||
|
}
|
||||||
|
|
||||||
let history = [];
|
let history = [];
|
||||||
let status = null;
|
let status = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user