fix attributeview component switching

feat/vaults
Tomáš Mládek 2021-12-21 22:16:33 +01:00
parent 509fc82165
commit 81a8770140
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 2 additions and 1 deletions

View File

@ -11,13 +11,14 @@
const dispatch = createEventDispatcher();
const params = useParams();
export let columns = "attribute, value";
export let columns: string;
export let header = true;
export let entries: UpEntry[];
export let editable = false;
// Display
$: columns = columns || "attribute, value";
$: showEntity = columns.includes("entity");
$: showAttribute = columns.includes("attribute");
$: showValue = columns.includes("value");