update SchemaManagementDrawer and HierarchyRow
This commit is contained in:
parent
5c16770e3b
commit
a4c177e8ec
|
@ -18,7 +18,7 @@
|
|||
|
||||
const ICON_MAP = {
|
||||
index: "ri-eye-line",
|
||||
record: "ri-list-settings-line",
|
||||
model: "ri-list-settings-line",
|
||||
}
|
||||
|
||||
store.subscribe(state => {
|
||||
|
@ -45,7 +45,7 @@
|
|||
<div
|
||||
on:click={() => selectHierarchyItem(node)}
|
||||
class="budibase__nav-item hierarchy-item"
|
||||
class:capitalized={type === 'record'}
|
||||
class:capitalized={type === 'model'}
|
||||
style="padding-left: {20 + level * 20}px"
|
||||
class:selected={navActive}>
|
||||
<i class={ICON_MAP[type]} />
|
||||
|
@ -53,7 +53,7 @@
|
|||
</div>
|
||||
{#if node.children}
|
||||
{#each node.children as child}
|
||||
<svelte:self node={child} level={level + 1} type="record" />
|
||||
<svelte:self node={child} level={level + 1} type="model" />
|
||||
{/each}
|
||||
{/if}
|
||||
{#if node.indexes}
|
||||
|
|
|
@ -57,8 +57,8 @@
|
|||
</div>
|
||||
|
||||
<div class="hierarchy-items-container">
|
||||
{#each $store.hierarchy.children as record}
|
||||
<HierarchyRow node={record} type="record" />
|
||||
{#each $store.hierarchy.children as model}
|
||||
<HierarchyRow node={model} type="model" />
|
||||
{/each}
|
||||
|
||||
{#each $store.hierarchy.indexes as index}
|
||||
|
|
Loading…
Reference in New Issue