mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-10 14:05:41 +08:00
Add description to monitor
* Add description to monitor model * Add description field to database * Add english and spanish translation for description * Closes: #482
This commit is contained in:
@@ -53,6 +53,7 @@ class Database {
|
||||
"patch-2fa-invalidate-used-token.sql": true,
|
||||
"patch-notification_sent_history.sql": true,
|
||||
"patch-monitor-basic-auth.sql": true,
|
||||
"patch-add-description-monitor.sql": true,
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -31,6 +31,7 @@ class Monitor extends BeanModel {
|
||||
return {
|
||||
id: this.id,
|
||||
name: this.name,
|
||||
description: this.description,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,6 +55,7 @@ class Monitor extends BeanModel {
|
||||
return {
|
||||
id: this.id,
|
||||
name: this.name,
|
||||
description: this.description,
|
||||
url: this.url,
|
||||
method: this.method,
|
||||
body: this.body,
|
||||
|
@@ -568,6 +568,7 @@ exports.entryPage = "dashboard";
|
||||
}
|
||||
|
||||
bean.name = monitor.name;
|
||||
bean.description = monitor.description;
|
||||
bean.type = monitor.type;
|
||||
bean.url = monitor.url;
|
||||
bean.method = monitor.method;
|
||||
@@ -1134,6 +1135,7 @@ exports.entryPage = "dashboard";
|
||||
let monitor = {
|
||||
// Define the new variable from earlier here
|
||||
name: monitorListData[i].name,
|
||||
description: monitorListData[i].description,
|
||||
type: monitorListData[i].type,
|
||||
url: monitorListData[i].url,
|
||||
method: monitorListData[i].method || "GET",
|
||||
|
Reference in New Issue
Block a user