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 Bernhard Kirchen
parent 8174fb1176
commit 31c26b0d25

View File

@ -93,7 +93,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
@ -103,7 +103,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>