From 4c53cde5228b6ba41ba037c616d284b6cef285f9 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 8 Nov 2021 16:09:55 -0800 Subject: [PATCH] hide Monitor ID in monitor list to make more human --- web/assets/js/bs5.dashboard-base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/assets/js/bs5.dashboard-base.js b/web/assets/js/bs5.dashboard-base.js index 930e42e3..51509bf6 100644 --- a/web/assets/js/bs5.dashboard-base.js +++ b/web/assets/js/bs5.dashboard-base.js @@ -650,12 +650,12 @@ function permissionCheck(toCheck,monitorId){ return false } -function drawMonitorListToSelector(jqTarget,selectFirst){ +function drawMonitorListToSelector(jqTarget,selectFirst,showId){ var html = '' $.each(loadedMonitors,function(n,v){ html += createOptionHtml({ value: v.mid, - label: v.name + ` (${v.mid})`, + label: v.name + (showId ? ` (${v.mid})` : ''), }) }) jqTarget.html(html)