From e11f6f5cdfbaa6c49abe37203143e2030de01831 Mon Sep 17 00:00:00 2001 From: Aman Date: Tue, 26 Jun 2018 13:06:26 +0530 Subject: [PATCH] Make pre/postfix coloring checkboxes inactive when gauge is active --- public/app/plugins/panel/singlestat/editor.html | 8 ++++---- public/app/plugins/panel/singlestat/module.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/app/plugins/panel/singlestat/editor.html b/public/app/plugins/panel/singlestat/editor.html index 3b75cf87eae..96576fd3c41 100644 --- a/public/app/plugins/panel/singlestat/editor.html +++ b/public/app/plugins/panel/singlestat/editor.html @@ -29,7 +29,7 @@
- +
@@ -39,7 +39,7 @@
- +
@@ -59,8 +59,8 @@
- - + +
diff --git a/public/app/plugins/panel/singlestat/module.ts b/public/app/plugins/panel/singlestat/module.ts index 0cf3a3a95a7..ebd2628b086 100644 --- a/public/app/plugins/panel/singlestat/module.ts +++ b/public/app/plugins/panel/singlestat/module.ts @@ -198,8 +198,8 @@ class SingleStatCtrl extends MetricsPanelCtrl { this.setValueMapping(data); } - canChangeFontSize() { - return this.panel.gauge.show; + canModifyText() { + return !this.panel.gauge.show; } setColoring(options) {