Skip to content

Commit

Permalink
chore: simplify condition for displaying domain
Browse files Browse the repository at this point in the history
  • Loading branch information
aineo committed Jun 28, 2024
1 parent feb0b74 commit 8565ea0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/nodes/components/NodeUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

<template v-else>
<span :class="classes.nodeName">{{ nodeHost.name }}</span>
<span v-if="nodeHost.domain && nodeHost.domain.length > 0" :class="classes.domain"
>.{{ nodeHost.domain }}</span
>
<span v-if="nodeHost.domain" :class="classes.domain">.{{ nodeHost.domain }}</span>
</template>

<span v-if="port" :class="classes.port">:{{ port }}</span>
Expand Down

0 comments on commit 8565ea0

Please sign in to comment.