diff --git a/ui/src/components/AttributeView.svelte b/ui/src/components/AttributeView.svelte index 0bf9283..3e96899 100644 --- a/ui/src/components/AttributeView.svelte +++ b/ui/src/components/AttributeView.svelte @@ -1,9 +1,10 @@ -
- - - {#if editable} - - {/if} - - - - {#if !reverse} - - {#if editable} - - - - {#each attributes as [id, entry] (id)} - - {#if editable} - - {/if} - - - - {/each} - {#if attributes.length > currentDisplay} - - - - {/if} - {#if editable} - - - - - - {/if} - {:else} - - - - - {#each attributes as [id, entry] (id)} - - - - - {/each} +
- {/if} - AttributeValue
- - - - {formatAttribute(entry.attribute) || entry.attribute} - - - updateEntry(id, entry.attribute, val)} - > - {#if entry.value.t === "Address"} -
- {:else} -
- - {formatValue(entry.value.c, entry.attribute) || - entry.value.c} - -
- {/if} - -
- - + {attributes.length - currentDisplay} more... - -
- - - - - -
EntitiesAttribute name
-
-
- - {entry.attribute} - -
+ + {#if editable} + {/if} -
-
+ {#if entity} + + {/if} + {#if attribute} + + {/if} + {#if value} + + {/if} + + + + {#if editable} + + {/if} + {#if entity} + Entity + {/if} + {#if attribute} + Attribute + {/if} + {#if value} + Value + {/if} + + + {#each attributes as [id, entry] (id)} + + {#if editable} + + + + {/if} + + {#if entity} + +
+ + {/if} + + {#if attribute} + + + {formatAttribute(entry.attribute) || entry.attribute} + + + {/if} + + {#if value} + + updateEntry(id, entry.attribute, val)} + > + {#if entry.value.t === "Address"} +
+ {:else} +
+ + {formatValue(entry.value.c, entry.attribute) || entry.value.c} + +
+ {/if} + + + {/if} + + {/each} + + {#if attributes.length > currentDisplay} + + + + + {attributes.length - currentDisplay} more... + + + + {/if} + + {#if editable} + + + + + {#if attribute} + + + + {/if} + {#if value} + + + + {/if} + + {/if} +