From 352f22042c5f0dc22b1885a9d7d749da29d4276a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 11 May 2020 08:10:24 +0200 Subject: [PATCH] StatPanels: Hide calc option if all values is selected (#24416) --- .../components/DashLinks/editor.html | 185 ++++++++++++++++++ public/app/plugins/panel/stat/types.ts | 2 + 2 files changed, 187 insertions(+) create mode 100644 public/app/features/dashboard/components/DashLinks/editor.html diff --git a/public/app/features/dashboard/components/DashLinks/editor.html b/public/app/features/dashboard/components/DashLinks/editor.html new file mode 100644 index 00000000000..0aa73c8192d --- /dev/null +++ b/public/app/features/dashboard/components/DashLinks/editor.html @@ -0,0 +1,185 @@ +
+

+ Dashboard Links + New + Edit +

+ +
+ + New + +
+ +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + +
TypeInfo
+ + {{ link.type }} + +
+ {{ link.title }} +
+
+ {{ link.url }} +
+ + {{ tag }} + +
+ + + + + + + +
+
+
+ +
+
+
+
+ Type +
+ +
+
+ +
+ With tags + +
+ + +
+ Title + +
+
+
+
  • Url
  • + +
    + +
    + Title + +
    + +
    + Tooltip + +
    + +
    + Icon +
    + +
    +
    +
    +
    + +
    +
    Include
    +
    + + + +
    +
    +
    + + +
    diff --git a/public/app/plugins/panel/stat/types.ts b/public/app/plugins/panel/stat/types.ts index d0ac9bd3c72..f7af3f3d1b4 100644 --- a/public/app/plugins/panel/stat/types.ts +++ b/public/app/plugins/panel/stat/types.ts @@ -61,6 +61,8 @@ export function addStandardDataReduceOptions( description: 'Choose a reducer function / calculation', editor: standardEditorsRegistry.get('stats-picker').editor as any, defaultValue: [ReducerID.mean], + // Hides it when all values mode is on + showIf: currentConfig => currentConfig.reduceOptions.values === false, }); if (includeOrientation) {