Use v-else instead of negative v-if

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
broodroosterdev 2024-04-12 15:12:53 +02:00 committed by GitHub
parent 75f2c69ac5
commit f381d64fce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@
<font-awesome-icon v-if="editMode" icon="times" class="action remove me-3" @click="removeMonitor(group.index, monitor.index)" /> <font-awesome-icon v-if="editMode" icon="times" class="action remove me-3" @click="removeMonitor(group.index, monitor.index)" />
<Status v-if="hideUptimePercentage" :status="statusOfLastHeartbeat(monitor.element.id)" /> <Status v-if="hideUptimePercentage" :status="statusOfLastHeartbeat(monitor.element.id)" />
<Uptime v-if="!hideUptimePercentage" :monitor="monitor.element" type="24" :pill="true" /> <Uptime v-else :monitor="monitor.element" type="24" :pill="true" />
<a <a
v-if="showLink(monitor)" v-if="showLink(monitor)"
:href="monitor.element.url" :href="monitor.element.url"