From 7853c2cc380b95d24324832ba998d4858b19cf73 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 18 Sep 2022 22:34:05 +0800 Subject: [PATCH] Update Maintenance UI --- src/assets/app.scss | 17 +++++-- src/languages/en.js | 4 +- src/pages/EditMaintenance.vue | 88 ++++++++++++++++----------------- src/pages/ManageMaintenance.vue | 2 +- src/pages/StatusPage.vue | 7 ++- 5 files changed, 61 insertions(+), 57 deletions(-) diff --git a/src/assets/app.scss b/src/assets/app.scss index 691adb682..81cf77245 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -22,6 +22,19 @@ textarea.form-control { width: 10px; } +.bg-maintenance { + color: white !important; + background-color: $maintenance !important; +} + +.bg-dark { + color: white; +} + +.text-maintenance { + color: $maintenance !important; +} + .list-group { border-radius: 0.75rem; @@ -252,10 +265,6 @@ optgroup { color: $dark-font-color2; } - .bg-maintenance { - background-color: $maintenance; - } - .btn-secondary { color: white; } diff --git a/src/languages/en.js b/src/languages/en.js index 59c0ea14e..1a5956f76 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -10,17 +10,17 @@ export default { maxRedirectDescription: "Maximum number of redirects to follow. Set to 0 to disable redirects.", acceptedStatusCodesDescription: "Select status codes which are considered as a successful response.", Maintenance: "Maintenance", - "Monitors": "Monitors", "Schedule maintenance": "Schedule maintenance", "Affected Monitors": "Affected Monitors", "Pick Affected Monitors...": "Pick Affected Monitors...", "Start of maintenance": "Start of maintenance", "Expected end of maintenance": "Expected end of maintenance", - "Show on all pages": "Show on all status pages", + "All Status Pages": "All Status Pages", "Selected status pages": "Selected status pages", "Select status pages...": "Select status pages...", End: "End", affectedMonitorsDescription: "Select monitors that are affected by current maintenance", + affectedStatusPages: "Show this maintenance message on selected status pages", atLeastOneMonitor: "Select at least one affected monitor", maintenanceInvalidDate: "Invalid maintenance end date entered", selectedStatusPagesDescription: "Select status pages to display maintenance info on", diff --git a/src/pages/EditMaintenance.vue b/src/pages/EditMaintenance.vue index 3e650faa5..65f2d7241 100644 --- a/src/pages/EditMaintenance.vue +++ b/src/pages/EditMaintenance.vue @@ -5,7 +5,7 @@
-
+
@@ -24,9 +24,10 @@
-
- +

{{ $t("Affected Monitors") }}

+ {{ $t("affectedMonitorsDescription") }} +
+
+ + +

{{ $t("Status Pages") }}

+ {{ $t("affectedStatusPages") }} + +
+ +
+ + +
-
- {{ $t("affectedMonitorsDescription") }} +
+
+

{{ $t("Effective Date Range") }}

+
@@ -67,46 +102,7 @@ >
- -
- - -
- - -
- - - - -
- {{ $t("selectedStatusPagesDescription") }} -
-
- -
+