forked from platypush/platypush
[Entities UI] Don't hide variables with null values.
Otherwise, the `variables` panel will still appear, but empty, and offering no way of actually removing or resetting those variables.
This commit is contained in:
parent
01c7d230f1
commit
0aecb50590
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="entity variable-container" v-if="value.value != null">
|
<div class="entity variable-container">
|
||||||
<div class="head" :class="{collapsed: collapsed}">
|
<div class="head" :class="{collapsed: collapsed}">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<EntityIcon :entity="value" :loading="loading" :error="error" />
|
<EntityIcon :entity="value" :loading="loading" :error="error" />
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="value-and-toggler" @click.stop="collapsed = !collapsed">
|
<div class="value-and-toggler" @click.stop="collapsed = !collapsed">
|
||||||
<div class="value" v-text="value.value" v-if="value?.value != null" />
|
<div class="value" v-text="value.value" />
|
||||||
<div class="collapse-toggler" @click.stop="collapsed = !collapsed">
|
<div class="collapse-toggler" @click.stop="collapsed = !collapsed">
|
||||||
<i class="fas" :class="{'fa-chevron-down': collapsed, 'fa-chevron-up': !collapsed}" />
|
<i class="fas" :class="{'fa-chevron-down': collapsed, 'fa-chevron-up': !collapsed}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue