color mark in connection tree

This commit is contained in:
Jan Prochazka
2021-12-04 09:33:31 +01:00
parent c39f11e2da
commit 454827baaa
7 changed files with 20 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
export let expandIcon = undefined;
export let checkedObjectsStore = null;
export let disableContextMenu = false;
export let colorMark = null;
$: isChecked = checkedObjectsStore && $checkedObjectsStore.find(x => module.extractKey(data) == module.extractKey(x));
@@ -86,6 +87,9 @@
{:else}
<FontIcon {icon} />
{/if}
{#if colorMark}
<FontIcon style={`color:${colorMark}`} icon="icon square" />
{/if}
{title}
{#if statusIcon}
<span class="status">