@@ -135,7 +135,7 @@
|
|||||||
{#if missingTag && nodeToJumpTo}
|
{#if missingTag && nodeToJumpTo}
|
||||||
<div class="error-input">
|
<div class="error-input">
|
||||||
<div><span class="error-message">Node "{nodeToJumpTo.title}" was missing tag used in workflow:</span><span style:padding-left="0.2rem"><b>{missingTag}</b></span></div>
|
<div><span class="error-message">Node "{nodeToJumpTo.title}" was missing tag used in workflow:</span><span style:padding-left="0.2rem"><b>{missingTag}</b></span></div>
|
||||||
<div>Tags on node: <b>[{(nodeToJumpTo?.attrs?.tags || []).join(", ")}]</b></div>
|
<div>Tags on node: <b>{(nodeToJumpTo?.properties?.tags || []).join(", ")}</b></div>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<span class="error-message" class:execution-error={isExecutionError}>{error.message}</span>
|
<span class="error-message" class:execution-error={isExecutionError}>{error.message}</span>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
export let label: string;
|
export let label: string;
|
||||||
export let root: string = "";
|
export let root: string = "";
|
||||||
export let root_url: null | string = null;
|
export let root_url: null | string = null;
|
||||||
export let scrollOnUpdate = false;
|
export let focusOnScroll = false;
|
||||||
export let value: Array<string> | Array<FileData> | null = null;
|
export let value: Array<string> | Array<FileData> | null = null;
|
||||||
export let style: Styles = {
|
export let style: Styles = {
|
||||||
grid_cols: [2],
|
grid_cols: [2],
|
||||||
@@ -121,10 +121,10 @@
|
|||||||
let container: HTMLDivElement;
|
let container: HTMLDivElement;
|
||||||
|
|
||||||
async function scroll_to_img(index: number | null) {
|
async function scroll_to_img(index: number | null) {
|
||||||
if (!scrollOnUpdate) return;
|
|
||||||
if (typeof index !== "number") return;
|
if (typeof index !== "number") return;
|
||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
|
if (focusOnScroll)
|
||||||
el[index].focus();
|
el[index].focus();
|
||||||
|
|
||||||
const { left: container_left, width: container_width } =
|
const { left: container_left, width: container_width } =
|
||||||
|
|||||||
Reference in New Issue
Block a user