From a5455691b3443df74075d5ebf5919c4fd8a71feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 5 Mar 2019 11:43:25 +0100 Subject: [PATCH] Hide time info switch when no time options are specified --- .../app/features/dashboard/panel_editor/QueryOptions.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public/app/features/dashboard/panel_editor/QueryOptions.tsx b/public/app/features/dashboard/panel_editor/QueryOptions.tsx index 8c59edf456d..0d031cb12ba 100644 --- a/public/app/features/dashboard/panel_editor/QueryOptions.tsx +++ b/public/app/features/dashboard/panel_editor/QueryOptions.tsx @@ -210,10 +210,11 @@ export class QueryOptions extends PureComponent { value={timeShift} /> - -
- -
+ {(timeShift || relativeTime) && ( +
+ +
+ )} ); }