Commit a73663de by Torkel Ödegaard Committed by GitHub

Merge pull request #15789 from grafana/hide-time-info

Hide time info switch when no time options are specified
parents c813a995 a5455691
...@@ -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