mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-11 22:52:54 +00:00
fix(ui): restore iframe args flow and align note-memory rule names
This commit is contained in:
parent
f4f11d667d
commit
ae24b51659
4 changed files with 9 additions and 9 deletions
|
|
@ -467,7 +467,7 @@
|
|||
<div id={`${id}-embed-${idx}`}>
|
||||
<FullHeightIframe
|
||||
src={getEmbedSrc(embedItem)}
|
||||
args={null}
|
||||
args={embedItem.args}
|
||||
allowScripts={true}
|
||||
allowForms={$settings?.iframeSandboxAllowForms ?? false}
|
||||
allowSameOrigin={$settings?.iframeSandboxAllowSameOrigin ?? false}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
export let iframeClassName = 'w-full rounded-2xl';
|
||||
|
||||
export let args = null;
|
||||
export let args: unknown = null;
|
||||
|
||||
export let allowScripts = true;
|
||||
export let allowForms = false;
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
'strict-origin-when-cross-origin';
|
||||
export let allowFullscreen = true;
|
||||
|
||||
export let payload = null; // payload to send into the iframe on request
|
||||
export let payload: unknown = null; // payload to send into the iframe on request
|
||||
|
||||
let iframe: HTMLIFrameElement | null = null;
|
||||
let iframeSrc: string | null = null;
|
||||
|
|
@ -199,9 +199,9 @@ window.Chart = parent.Chart; // Chart previously assigned on parent
|
|||
width="100%"
|
||||
frameborder="0"
|
||||
{sandbox}
|
||||
{allowFullscreen}
|
||||
allowfullscreen={allowFullscreen}
|
||||
on:load={onLoad}
|
||||
/>
|
||||
></iframe>
|
||||
{:else if iframeSrc}
|
||||
<iframe
|
||||
bind:this={iframe}
|
||||
|
|
@ -213,7 +213,7 @@ window.Chart = parent.Chart; // Chart previously assigned on parent
|
|||
frameborder="0"
|
||||
{sandbox}
|
||||
referrerpolicy={referrerPolicy}
|
||||
{allowFullscreen}
|
||||
allowfullscreen={allowFullscreen}
|
||||
on:load={onLoad}
|
||||
/>
|
||||
></iframe>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -1189,7 +1189,7 @@
|
|||
<div class="my-2" id={`${componentId}-tool-call-embed-${idx}`}>
|
||||
<FullHeightIframe
|
||||
src={embed}
|
||||
args={null}
|
||||
{args}
|
||||
allowScripts={true}
|
||||
allowForms={$settings?.iframeSandboxAllowForms ?? false}
|
||||
allowSameOrigin={$settings?.iframeSandboxAllowSameOrigin ?? false}
|
||||
|
|
|
|||
|
|
@ -638,7 +638,7 @@ export const TOOL_COMBINATION_RULES: ToolCombinationRule[] = [
|
|||
pendingPrefix: 'Remembering and Writing Note',
|
||||
donePrefix: 'Remembered and Wrote Note',
|
||||
match: {
|
||||
onlyOf: ['write_memory', 'write_note']
|
||||
onlyOf: ['add_memory', 'write_note']
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue