MQTT password field to password type

pull/875/head
Louis Lam 3 years ago
parent e34420368b
commit 136fdf3768

@ -122,17 +122,17 @@
<!-- For MQTT Type --> <!-- For MQTT Type -->
<template v-if="monitor.type === 'mqtt'"> <template v-if="monitor.type === 'mqtt'">
<div class="my-3"> <div class="my-3">
<label for="mqttUsername" class="form-label">{{ $t("Username") }}</label> <label for="mqttUsername" class="form-label">MQTT {{ $t("Username") }}</label>
<input id="mqttUsername" v-model="monitor.mqttUsername" type="text" class="form-control"> <input id="mqttUsername" v-model="monitor.mqttUsername" type="text" class="form-control">
</div> </div>
<div class="my-3"> <div class="my-3">
<label for="mqttPassword" class="form-label">{{ $t("Password") }}</label> <label for="mqttPassword" class="form-label">MQTT {{ $t("Password") }}</label>
<input id="mqttPassword" v-model="monitor.mqttPassword" type="text" class="form-control"> <input id="mqttPassword" v-model="monitor.mqttPassword" type="password" class="form-control">
</div> </div>
<div class="my-3"> <div class="my-3">
<label for="mqttTopic" class="form-label">{{ $t("Topic") }}</label> <label for="mqttTopic" class="form-label">MQTT {{ $t("Topic") }}</label>
<input id="mqttTopic" v-model="monitor.mqttTopic" type="text" class="form-control" required> <input id="mqttTopic" v-model="monitor.mqttTopic" type="text" class="form-control" required>
<div class="form-text"> <div class="form-text">
{{ $t("topicExplanation") }} {{ $t("topicExplanation") }}
@ -140,7 +140,7 @@
</div> </div>
<div class="my-3"> <div class="my-3">
<label for="mqttSuccessMessage" class="form-label">{{ $t("successMessage") }}</label> <label for="mqttSuccessMessage" class="form-label">MQTT {{ $t("successMessage") }}</label>
<input id="mqttSuccessMessage" v-model="monitor.mqttSuccessMessage" type="text" class="form-control" required> <input id="mqttSuccessMessage" v-model="monitor.mqttSuccessMessage" type="text" class="form-control" required>
<div class="form-text"> <div class="form-text">
{{ $t("successMessageExplanation") }} {{ $t("successMessageExplanation") }}

Loading…
Cancel
Save