Thing details: Fix Z-Wave network map shown if not Z-Wave binding (#2950)

Fixes #2940.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
pull/2946/head
Florian Hotze 2024-12-28 13:38:23 +01:00 committed by GitHub
parent 5d7f35a824
commit ba1772c6c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -94,12 +94,12 @@
:read-only="!editable" />
<!-- Thing Actions & UI Actions -->
<template v-if="thingActions.length > 0 || thingType?.UID?.startsWith('zwave')">
<template v-if="thingActions.length > 0 || thingType?.UID?.startsWith('zwave:')">
<f7-block-title medium class="no-margin-top">
Actions
</f7-block-title>
<f7-list class="margin-top" media-list>
<f7-list-item v-if="thingType?.UID?.startsWith('zwave')" title="View Network Map" link="" @click="openZWaveNetworkPopup()" />
<f7-list-item v-if="thingType?.UID?.startsWith('zwave:')" title="View Network Map" link="" @click="openZWaveNetworkPopup()" />
<f7-list-item v-for="action in thingActions" :key="action.name" :title="action.label" :footer="action.description" link="" @click="doThingAction(action)" />
</f7-list>
</template>