Removed wrong translation and used v-if instead of hidden

This commit is contained in:
UnwishingMoon 2026-01-18 15:55:22 +01:00
parent e08001f36e
commit f9455dc5ab
No known key found for this signature in database
GPG Key ID: F3BCA53610DBE6A1
2 changed files with 6 additions and 7 deletions

View File

@ -1370,7 +1370,6 @@
"expectedTlsAlertDescription": "Select the TLS alert you expect the server to return. Use {code} to verify mTLS endpoints reject connections without client certificates. See {link} for details.",
"TLS Alert Spec": "RFC 8446",
"mariadbSocketPathDetectedHelptext": "Connecting to the database as specified via the {0} environment variable.",
"mariadbSocketEnvVariable": "UPTIME_KUMA_DB_SOCKET",
"Expand All Groups": "Expand All Groups",
"Collapse All Groups": "Collapse All Groups"
}

View File

@ -79,7 +79,7 @@
</div>
<template v-if="dbConfig.type === 'mariadb'">
<div class="form-floating mt-3 short" :hidden="isProvidedMariaDBSocket">
<div class="form-floating mt-3 short" v-if="!isProvidedMariaDBSocket">
<input
id="floatingInput"
v-model="dbConfig.hostname"
@ -90,20 +90,20 @@
<label for="floatingInput">{{ $t("Hostname") }}</label>
</div>
<div class="form-floating mt-3 short" :hidden="isProvidedMariaDBSocket">
<div class="form-floating mt-3 short" v-if="!isProvidedMariaDBSocket">
<input id="floatingInput" v-model="dbConfig.port" type="text" class="form-control" required />
<label for="floatingInput">{{ $t("Port") }}</label>
</div>
<div class="mt-1 short text-start" :hidden="!isProvidedMariaDBSocket">
<div class="mt-1 short text-start" v-if="isProvidedMariaDBSocket">
<i18n-t keypath="mariadbSocketPathDetectedHelptext" tag="div" class="form-text">
<code>{{ $t("mariadbSocketEnvVariable") }}</code>
<code>UPTIME_KUMA_DB_SOCKET</code>
</i18n-t>
</div>
<hr class="mt-3 short" />
<hr v-if="isProvidedMariaDBSocket" class="mt-3 short" />
<div class="form-floating mt-2 short">
<div class="form-floating mt-3 short">
<input
id="floatingInput"
v-model="dbConfig.username"