mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 19:20:40 +00:00
Add conditional rendering to description
* Modify Details component * Modify MonitorList component
This commit is contained in:
parent
934d633d4d
commit
fbf2df9e7a
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
|||
<div class="info">
|
||||
<Uptime :monitor="item" type="24" :pill="true" />
|
||||
{{ item.name }}
|
||||
<span :title="item.description">
|
||||
<span v-if="item.description" :title="item.description">
|
||||
<font-awesome-icon icon="info-circle" />
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<transition name="slide-fade" appear>
|
||||
<div v-if="monitor">
|
||||
<h1> {{ monitor.name }}</h1>
|
||||
<p>{{ monitor.description }}</p>
|
||||
<p v-if="monitor.description">{{ monitor.description }}</p>
|
||||
<div class="tags">
|
||||
<Tag v-for="tag in monitor.tags" :key="tag.id" :item="tag" :size="'sm'" />
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue