webapp: MQTT: no login with cert if TLS disabled

in the settings view we hide the "login with cert" setting while TLS is
disabled, so we should also hide that info in the info view when TLS is
disabled.
This commit is contained in:
Bernhard Kirchen 2024-10-26 23:11:17 +02:00 committed by Thomas Basler
parent 9132a88963
commit 866b539757

View File

@ -83,7 +83,7 @@
<th>{{ $t('mqttinfo.RootCertifcateInfo') }}</th> <th>{{ $t('mqttinfo.RootCertifcateInfo') }}</th>
<td>{{ mqttDataList.mqtt_root_ca_cert_info }}</td> <td>{{ mqttDataList.mqtt_root_ca_cert_info }}</td>
</tr> </tr>
<tr> <tr v-if="mqttDataList.mqtt_tls">
<th>{{ $t('mqttinfo.TlsCertLogin') }}</th> <th>{{ $t('mqttinfo.TlsCertLogin') }}</th>
<td> <td>
<StatusBadge <StatusBadge
@ -93,7 +93,7 @@
/> />
</td> </td>
</tr> </tr>
<tr v-if="mqttDataList.mqtt_tls_cert_login"> <tr v-if="mqttDataList.mqtt_tls && mqttDataList.mqtt_tls_cert_login">
<th>{{ $t('mqttinfo.ClientCertifcateInfo') }}</th> <th>{{ $t('mqttinfo.ClientCertifcateInfo') }}</th>
<td>{{ mqttDataList.mqtt_client_cert_info }}</td> <td>{{ mqttDataList.mqtt_client_cert_info }}</td>
</tr> </tr>