Apply suggestions from code review
This commit is contained in:
parent
3127f9817c
commit
224e6b8705
@ -1,6 +1,6 @@
|
||||
exports.up = function (knex) {
|
||||
return knex.schema.alterTable("monitor", function (table) {
|
||||
table.integer("screenshot_delay").notNullable().defaultTo(0);
|
||||
table.integer("screenshot_delay").notNullable().unsigned().defaultTo(0);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -1055,10 +1055,9 @@
|
||||
"remoteBrowserToggle": "By default Chromium runs inside the Uptime Kuma container. You can use a remote browser by toggling this switch.",
|
||||
"useRemoteBrowser": "Use a Remote Browser",
|
||||
"deleteRemoteBrowserMessage": "Are you sure want to delete this Remote Browser for all monitors?",
|
||||
"Screenshot Delay ({ms})": "Screenshot Delay ({ms})",
|
||||
"ms": "ms",
|
||||
"screenshotDelayDescription": "Wait this many milliseconds before taking the screenshot.",
|
||||
"screenshotDelayMaxInfo": "Maximum: {max}ms (0.5 × interval).",
|
||||
"Screenshot Delay": "Screenshot Delay ({miliseconds})",
|
||||
"miliseconds": "{n} milisecond | {n} miliseconds",
|
||||
"screenshotDelayDescription": "Optionally wait this many milliseconds before taking the screenshot. Maximum: {maxValueMs}ms (0.5 × interval).",
|
||||
"screenshotDelayWarning": "Higher values keep the browser open longer, which may increase memory usage with many concurrent monitors.",
|
||||
"GrafanaOncallUrl": "Grafana Oncall URL",
|
||||
"systemService": "System Service",
|
||||
|
||||
@ -266,7 +266,7 @@
|
||||
<!-- Screenshot Delay -->
|
||||
<div class="my-3">
|
||||
<label for="screenshot-delay" class="form-label">
|
||||
{{ $t("Screenshot Delay ({ms})", { ms: $t("ms") }) }}
|
||||
{{ $t("Screenshot Delay", { miliseconds: $t("miliseconds", monitor.screenshot_delay) }) }}
|
||||
</label>
|
||||
<input
|
||||
id="screenshot-delay"
|
||||
@ -278,10 +278,8 @@
|
||||
step="100"
|
||||
/>
|
||||
<div class="form-text">
|
||||
{{ $t("screenshotDelayDescription") }}
|
||||
{{
|
||||
$t("screenshotDelayMaxInfo", {
|
||||
max: Math.floor(monitor.interval * 1000 * 0.5),
|
||||
{{ $t("screenshotDelayDescription", {
|
||||
maxValueMs: Math.floor(monitor.interval * 1000 * 0.5),
|
||||
})
|
||||
}}
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user