mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 23:53:01 +00:00
fix(client): Do not render img tag when icon url not provided
This commit is contained in:
parent
b07d037cb5
commit
3f2ffcea97
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
<mk-loading v-if="fetching"/>
|
<mk-loading v-if="fetching"/>
|
||||||
<transition-group tag="div" name="chart" class="instances" v-else>
|
<transition-group tag="div" name="chart" class="instances" v-else>
|
||||||
<div v-for="(instance, i) in instances" :key="instance.id" class="instance">
|
<div v-for="(instance, i) in instances" :key="instance.id" class="instance">
|
||||||
<img :src="instance.iconUrl" alt=""/>
|
<img v-if="instance.iconUrl" :src="instance.iconUrl" alt=""/>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<a class="a" :href="'https://' + instance.host" target="_blank" :title="instance.host">{{ instance.host }}</a>
|
<a class="a" :href="'https://' + instance.host" target="_blank" :title="instance.host">{{ instance.host }}</a>
|
||||||
<p>{{ instance.softwareName || '?' }} {{ instance.softwareVersion }}</p>
|
<p>{{ instance.softwareName || '?' }} {{ instance.softwareVersion }}</p>
|
||||||
|
|
Loading…
Reference in a new issue