From db6b863445f8e696cabef33d1a2f7a61a4f88b72 Mon Sep 17 00:00:00 2001 From: titanventura Date: Sun, 26 Feb 2023 16:26:09 +0530 Subject: [PATCH 1/2] show tags in monitor select list under status page : change select UI from normal select to vue-multiselect --- src/pages/StatusPage.vue | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index edf32561b..2cdbf1b5b 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -276,9 +276,23 @@
- + + +
{{ $t("No monitors available.") }} {{ $t("Add one") }} @@ -339,6 +353,8 @@ import PublicGroupList from "../components/PublicGroupList.vue"; import MaintenanceTime from "../components/MaintenanceTime.vue"; import { getResBaseURL } from "../util-frontend"; import { STATUS_PAGE_ALL_DOWN, STATUS_PAGE_ALL_UP, STATUS_PAGE_MAINTENANCE, STATUS_PAGE_PARTIAL_DOWN, UP, MAINTENANCE } from "../util.ts"; +import Tag from "../components/Tag.vue"; +import VueMultiselect from "vue-multiselect"; const toast = useToast(); @@ -359,6 +375,8 @@ export default { Confirm, PrismEditor, MaintenanceTime, + Tag, + VueMultiselect }, // Leave Page for vue route change From 7706c295642163dd52c342b14cad4c6d979b116d Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 4 Apr 2023 15:42:37 +0800 Subject: [PATCH 2/2] Minor --- src/pages/StatusPage.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index b1c6d64c9..fc3d3741d 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -285,9 +285,10 @@ :options="allMonitorList" :multiple="false" :searchable="true" - :placeholder="$t('Select')" + :placeholder="$t('Add a monitor')" label="name" trackBy="name" + class="mt-3" >