Skip to content

Commit a280786

Browse files
authored
fix: lanip copy button not present (#1459)
1 parent f88400e commit a280786

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web/components/UserProfile.ce.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,19 @@ onMounted(() => {
117117
<span class="text-header-text-secondary hidden md:inline-block px-8px">&bull;</span>
118118
</template>
119119
<button
120+
v-if="lanIp"
120121
:title="t('Click to Copy LAN IP {0}', [lanIp])"
121122
class="text-header-text-primary opacity-100 hover:opacity-75 focus:opacity-75 transition-opacity"
122123
@click="copyLanIp()"
123124
>
124125
{{ name }}
125126
</button>
127+
<span
128+
v-else
129+
class="text-header-text-primary"
130+
>
131+
{{ name }}
132+
</span>
126133
<span
127134
v-show="copied || showCopyNotSupported"
128135
class="text-white text-12px leading-none py-4px px-8px absolute top-full right-0 bg-gradient-to-r from-unraid-red to-orange text-center block rounded"

0 commit comments

Comments
 (0)