Merge pull request #2018 from influxdata/bugfix/unresponsive-display-options

BUGFIX: Unresponsive query builder, display options, and cell
pull/10616/head
Andrew Watkins 2017-09-21 15:35:23 -07:00 committed by GitHub
commit 589a800f7d
4 changed files with 25 additions and 1 deletions

View File

@ -2,6 +2,7 @@
### Bug Fixes
1.[#2004](https://github.com/influxdata/chronograf/pull/2004): Fix DE query templates dropdown disappearance.
1.[#2006](https://github.com/influxdata/chronograf/pull/2006): Fix no alert for duplicate db name
1.[#2018](https://github.com/influxdata/chronograf/pull/2018): Fix unresponsive display options and query builder in dashboards
### Features
1. [#1885](https://github.com/influxdata/chronograf/pull/1885): Add `fill` options to data explorer and dashboard queries
1. [#1978](https://github.com/influxdata/chronograf/pull/1978): Support editing kapacitor TICKScript

View File

@ -1,5 +1,7 @@
import React, {PropTypes} from 'react'
import {emptyGraphCopy} from 'src/shared/copy/cell'
import AutoRefresh from 'shared/components/AutoRefresh'
import LineGraph from 'shared/components/LineGraph'
import SingleStat from 'shared/components/SingleStat'
@ -19,6 +21,16 @@ const RefreshingGraph = ({
synchronizer,
editQueryStatus,
}) => {
if (!queries.length) {
return (
<div className="graph-empty">
<p data-test="data-explorer-no-results">
{emptyGraphCopy}
</p>
</div>
)
}
if (type === 'single-stat') {
return (
<RefreshingSingleStat

View File

@ -0,0 +1,10 @@
import _ from 'lodash'
const emptyFunny = [
'Looks like you dont have any queries. Be a lot cooler if you did.',
'Create a query below. Go on, I dare ya!',
'Create a query below. Have fun!',
'1) Create a query below \n2) Profit',
]
export const emptyGraphCopy = _.sample(emptyFunny)

View File

@ -95,8 +95,9 @@ $graph-gutter: 16px;
font-size: 20px;
font-weight: 400;
margin: 0;
text-align: center;
text-align: left;
color: $g8-storm;
white-space: pre-wrap;
}
}
.graph-fetching {