Merge pull request #1851 from influxdata/regression/query-validation

Success / error messages for queries not displaying
pull/10616/head
Andrew Watkins 2017-08-09 13:52:08 -07:00 committed by GitHub
commit 735de51f88
2 changed files with 10 additions and 6 deletions

View File

@ -45,6 +45,7 @@ const VisView = ({
templates={templates} templates={templates}
cellHeight={heightPixels} cellHeight={heightPixels}
autoRefresh={autoRefresh} autoRefresh={autoRefresh}
editQueryStatus={editQueryStatus}
/> />
) )
} }

View File

@ -8,14 +8,15 @@ const RefreshingLineGraph = AutoRefresh(LineGraph)
const RefreshingSingleStat = AutoRefresh(SingleStat) const RefreshingSingleStat = AutoRefresh(SingleStat)
const RefreshingGraph = ({ const RefreshingGraph = ({
timeRange, axes,
autoRefresh,
templates,
synchronizer,
type, type,
queries, queries,
templates,
timeRange,
cellHeight, cellHeight,
axes, autoRefresh,
synchronizer,
editQueryStatus,
}) => { }) => {
if (type === 'single-stat') { if (type === 'single-stat') {
return ( return (
@ -43,6 +44,7 @@ const RefreshingGraph = ({
isBarGraph={type === 'bar'} isBarGraph={type === 'bar'}
displayOptions={displayOptions} displayOptions={displayOptions}
synchronizer={synchronizer} synchronizer={synchronizer}
editQueryStatus={editQueryStatus}
axes={axes} axes={axes}
/> />
) )
@ -58,9 +60,10 @@ RefreshingGraph.propTypes = {
templates: arrayOf(shape()), templates: arrayOf(shape()),
synchronizer: func, synchronizer: func,
type: string.isRequired, type: string.isRequired,
queries: arrayOf(shape()).isRequired,
cellHeight: number, cellHeight: number,
axes: shape(), axes: shape(),
queries: arrayOf(shape()).isRequired,
editQueryStatus: func,
} }
export default RefreshingGraph export default RefreshingGraph