Merge pull request #3049 from influxdata/table-time-format-guide
Table Time Formatting tooltip opens linkpull/3068/head
commit
36921512b1
|
@ -51,8 +51,8 @@ class GraphOptionsTimeFormat extends PureComponent<Props, State> {
|
|||
|
||||
public render() {
|
||||
const {format, customFormat} = this.state
|
||||
const tipContent =
|
||||
'For information on formatting, see http://momentjs.com/docs/#/parsing/string-format/'
|
||||
const tipUrl = 'http://momentjs.com/docs/#/parsing/string-format/'
|
||||
const tipContent = `For information on formatting, see <br/><a href="#">${tipUrl}</a>`
|
||||
|
||||
const formatOption = FORMAT_OPTIONS.find(op => op.text === format)
|
||||
const showCustom = !formatOption || customFormat
|
||||
|
@ -62,10 +62,12 @@ class GraphOptionsTimeFormat extends PureComponent<Props, State> {
|
|||
<label>
|
||||
Time Format
|
||||
{showCustom && (
|
||||
<QuestionMarkTooltip
|
||||
tipID="Time Axis Format"
|
||||
tipContent={tipContent}
|
||||
/>
|
||||
<a href={tipUrl} target="_blank">
|
||||
<QuestionMarkTooltip
|
||||
tipID="Time Axis Format"
|
||||
tipContent={tipContent}
|
||||
/>
|
||||
</a>
|
||||
)}
|
||||
</label>
|
||||
<Dropdown
|
||||
|
|
|
@ -128,3 +128,7 @@ $qmark-tooltip-size: 15px;
|
|||
background-color: $c-pool;
|
||||
}
|
||||
}
|
||||
|
||||
a > .question-mark-tooltip:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue