mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 15:46:08 +08:00
Add toggle to hide the uptime percentage on a statuspage
This commit is contained in:
@@ -106,6 +106,7 @@ class Database {
|
||||
"patch-notification-config.sql": true,
|
||||
"patch-fix-kafka-producer-booleans.sql": true,
|
||||
"patch-timeout.sql": true, // The last file so far converted to a knex migration file
|
||||
"patch-add-hide-uptime-percentage.sql": true
|
||||
};
|
||||
|
||||
/**
|
||||
|
@@ -246,6 +246,7 @@ class StatusPage extends BeanModel {
|
||||
showPoweredBy: !!this.show_powered_by,
|
||||
googleAnalyticsId: this.google_analytics_tag_id,
|
||||
showCertificateExpiry: !!this.show_certificate_expiry,
|
||||
hideUptimePercentage: !!this.hide_uptime_percentage
|
||||
};
|
||||
}
|
||||
|
||||
@@ -268,6 +269,7 @@ class StatusPage extends BeanModel {
|
||||
showPoweredBy: !!this.show_powered_by,
|
||||
googleAnalyticsId: this.google_analytics_tag_id,
|
||||
showCertificateExpiry: !!this.show_certificate_expiry,
|
||||
hideUptimePercentage: !!this.hide_uptime_percentage
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -163,6 +163,7 @@ module.exports.statusPageSocketHandler = (socket) => {
|
||||
statusPage.footer_text = config.footerText;
|
||||
statusPage.custom_css = config.customCSS;
|
||||
statusPage.show_powered_by = config.showPoweredBy;
|
||||
statusPage.hide_uptime_percentage = config.hideUptimePercentage;
|
||||
statusPage.show_certificate_expiry = config.showCertificateExpiry;
|
||||
statusPage.modified_date = R.isoDateTime();
|
||||
statusPage.google_analytics_tag_id = config.googleAnalyticsId;
|
||||
|
Reference in New Issue
Block a user