Rename 'Local Service' monitor to 'System Service'

This commit is contained in:
iotux 2025-12-15 16:57:02 +01:00
parent 0f951ef123
commit 6940241543
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
*/
exports.up = async (knex) => {
await knex.schema.alterTable("monitor", (table) => {
table.string("local_service_name");
table.string("system_service_name");
});
};
@ -14,6 +14,6 @@ exports.up = async (knex) => {
*/
exports.down = async (knex) => {
await knex.schema.alterTable("monitor", (table) => {
table.dropColumn("local_service_name");
table.dropColumn("system_service_name");
});
};

View File

@ -900,7 +900,7 @@ let needSetup = false;
bean.rabbitmqPassword = monitor.rabbitmqPassword;
bean.conditions = JSON.stringify(monitor.conditions);
bean.manual_status = monitor.manual_status;
bean.local_service_name = monitor.local_service_name;
bean.system_service_name = monitor.system_service_name;
// ping advanced options
bean.ping_numeric = monitor.ping_numeric;

View File

@ -668,7 +668,7 @@
<template v-if="monitor.type === 'system-service'">
<div class="my-3">
<label for="system-service-name" class="form-label">{{ $t("Service Name") }}</label>
<input id="system-service-name" v-model="monitor.system_service_name" type="text" class="form-control" required placeholder="nginx.service">
<input id="system-service-name" v-model="monitor.system_service_name" type="text" class="form-control" required placeholder="nginx">
<div class="form-text">
{{ $t("systemServiceDescription") }}