From de9ad0fe603b753dc330083b826b9cd07b78a64d Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Sun, 11 Jun 2023 21:49:16 +0800 Subject: [PATCH 1/2] UI: Add help msg for no Group Mon. --- src/lang/en.json | 3 ++- src/pages/EditMonitor.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index e4ac99d7e..fddc2aaa9 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -749,5 +749,6 @@ "Badge value (For Testing only.)": "Badge value (For Testing only.)", "Badge URL": "Badge URL", "Group": "Group", - "Monitor Group": "Monitor Group" + "Monitor Group": "Monitor Group", + "noGroupMonitorMsg": "Not Available. Create a Group Monitor First." } diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 462374d03..cbaea0b70 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -96,7 +96,8 @@
From c04194191f1f6ba928498d3f9219b76512180c73 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Sun, 11 Jun 2023 21:49:51 +0800 Subject: [PATCH 2/2] UI: improve disabled select legibility --- src/assets/app.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/assets/app.scss b/src/assets/app.scss index d233e8d98..b648cbcd0 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -266,6 +266,11 @@ optgroup { background-color: $dark-bg2; } + .form-select:disabled { + color: rgba($dark-font-color, 0.7); + background-color: $dark-bg; + } + .form-control, .form-select { border-color: $dark-border-color; }