tls: pages: Make keyword optional for the TLS monitor; update description

This commit is contained in:
Martin Rubli 2024-06-03 18:27:15 +02:00
parent 00c0563d55
commit 94d04f7cc2
2 changed files with 2 additions and 2 deletions

View file

@ -588,7 +588,7 @@
"atLeastOneMonitor": "Select at least one affected monitor",
"passwordNotMatchMsg": "The repeat password does not match.",
"notificationDescription": "Notifications must be assigned to a monitor to function.",
"keywordDescription": "Search keyword in plain HTML or JSON response. The search is case-sensitive.",
"keywordDescription": "Search keyword in plain HTML, JSON, or raw response. The search is case-sensitive.",
"invertKeywordDescription": "Look for the keyword to be absent rather than present.",
"tcpRequestDescription": "Request sent to the server after establishing the connection. Trailing newlines may be required. JavaScript escape sequences are allowed.",
"tcpStartTlsDescription": "Start unencrypted and upgrade connection using STARTTLS. Relevant documentation: {rfc2595}, {rfc3207}",

View file

@ -130,7 +130,7 @@
<!-- Keyword -->
<div v-if="monitor.type === 'keyword' || monitor.type === 'grpc-keyword' || monitor.type === 'port-tls'" class="my-3">
<label for="keyword" class="form-label">{{ $t("Keyword") }}</label>
<input id="keyword" v-model="monitor.keyword" type="text" class="form-control" required>
<input id="keyword" v-model="monitor.keyword" type="text" class="form-control" :required="monitor.type !== 'port-tls'">
<div class="form-text">
{{ $t("keywordDescription") }}
</div>