tested liniting fix

pull/3878/head
Frank Elsinga 11 months ago committed by GitHub
parent a79bcb4165
commit 2318aa7049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -484,7 +484,7 @@
<div v-if="monitor.type === 'http' || monitor.type === 'keyword' || monitor.type === 'json-query' || monitor.type === 'redis' " class="my-3 form-check"> <div v-if="monitor.type === 'http' || monitor.type === 'keyword' || monitor.type === 'json-query' || monitor.type === 'redis' " class="my-3 form-check">
<input id="ignore-tls" v-model="monitor.ignoreTls" class="form-check-input" type="checkbox" value=""> <input id="ignore-tls" v-model="monitor.ignoreTls" class="form-check-input" type="checkbox" value="">
<label class="form-check-label" for="ignore-tls"> <label class="form-check-label" for="ignore-tls">
{{ ignoreTlsLabel }} {{ this.monitor.type === "redis" ? this.$t("ignoreTLSErrorGeneral") : this.$t("ignoreTLSError") }}
</label> </label>
</div> </div>
@ -1201,16 +1201,6 @@ message HealthCheckResponse {
return list; return list;
}, },
/**
* Retrieves the appropriate ignore TLS error label based on the monitor type.
* @returns {string} Returns the non specific label if the monitor type is 'redis', otherwise, returns the default.
*/
ignoreTlsLabel() {
return this.monitor.type === "redis"
? this.$t("ignoreTLSErrorGeneral")
: this.$t("ignoreTLSError");
}
dockerHostOptionsList() { dockerHostOptionsList() {
if (this.$root.dockerHostList && this.$root.dockerHostList.length > 0) { if (this.$root.dockerHostList && this.$root.dockerHostList.length > 0) {
return this.$root.dockerHostList.map((host) => { return this.$root.dockerHostList.map((host) => {
@ -1227,7 +1217,6 @@ message HealthCheckResponse {
} }
} }
}, },
watch: { watch: {
"$root.proxyList"() { "$root.proxyList"() {
if (this.isAdd) { if (this.isAdd) {

Loading…
Cancel
Save