Commit a5455691 by Torkel Ödegaard

Hide time info switch when no time options are specified

parent 1711622e
...@@ -210,10 +210,11 @@ export class QueryOptions extends PureComponent<Props, State> { ...@@ -210,10 +210,11 @@ export class QueryOptions extends PureComponent<Props, State> {
value={timeShift} value={timeShift}
/> />
</div> </div>
{(timeShift || relativeTime) && (
<div className="gf-form-inline"> <div className="gf-form-inline">
<Switch label="Hide time info" checked={hideTimeOverride} onChange={this.onToggleTimeOverride} /> <Switch label="Hide time info" checked={hideTimeOverride} onChange={this.onToggleTimeOverride} />
</div> </div>
)}
</div> </div>
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment