feat, style: attribute sections in inspect are headed by upobjects
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
c70376e484
commit
5429806c73
2 changed files with 20 additions and 21 deletions
|
@ -18,13 +18,14 @@
|
||||||
import IconButton from "./utils/IconButton.svelte";
|
import IconButton from "./utils/IconButton.svelte";
|
||||||
import { createEventDispatcher, type ComponentType } from "svelte";
|
import { createEventDispatcher, type ComponentType } from "svelte";
|
||||||
import UpLink from "./display/UpLink.svelte";
|
import UpLink from "./display/UpLink.svelte";
|
||||||
|
import UpObject from "./display/UpObject.svelte";
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
export let entries: UpEntry[];
|
export let entries: UpEntry[];
|
||||||
export let widgets: Widget[] | undefined = undefined;
|
export let widgets: Widget[] | undefined = undefined;
|
||||||
export let initialWidget: string | undefined = undefined;
|
export let initialWidget: string | undefined = undefined;
|
||||||
export let title: string | undefined = undefined;
|
export let title: string | undefined = undefined;
|
||||||
export let link: string | undefined = undefined;
|
export let group: string | undefined = undefined;
|
||||||
export let icon: string | undefined = undefined;
|
export let icon: string | undefined = undefined;
|
||||||
export let highlighted = false;
|
export let highlighted = false;
|
||||||
export let editable = false;
|
export let editable = false;
|
||||||
|
@ -73,15 +74,13 @@
|
||||||
<section class="entry-view labelborder" class:highlighted>
|
<section class="entry-view labelborder" class:highlighted>
|
||||||
<header>
|
<header>
|
||||||
<h3>
|
<h3>
|
||||||
{#if link}
|
{#if group}
|
||||||
<UpLink to={{ entity: link }}>
|
|
||||||
{#if icon}
|
{#if icon}
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<Icon name={icon} />
|
<Icon name={icon} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{title || ""}
|
<UpObject link address={group} labels={title ? [title] : undefined} />
|
||||||
</UpLink>
|
|
||||||
{:else}
|
{:else}
|
||||||
{#if icon}
|
{#if icon}
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
|
|
|
@ -375,13 +375,13 @@
|
||||||
on:change={onChange}
|
on:change={onChange}
|
||||||
highlighted={highlightedType == typeAddr}
|
highlighted={highlightedType == typeAddr}
|
||||||
title={$allTypes[typeAddr].labels.join(" | ")}
|
title={$allTypes[typeAddr].labels.join(" | ")}
|
||||||
link={typeAddr}
|
group={typeAddr}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
{#if currentUntypedAttributes.length > 0 || editable}
|
{#if currentUntypedAttributes.length > 0 || editable}
|
||||||
<EntryView
|
<EntryView
|
||||||
title={$i18n.t("Attributes")}
|
title={$i18n.t("Other Attributes")}
|
||||||
{editable}
|
{editable}
|
||||||
widgets={attributeWidgets}
|
widgets={attributeWidgets}
|
||||||
entries={currentUntypedAttributes}
|
entries={currentUntypedAttributes}
|
||||||
|
|
Loading…
Reference in a new issue