Add templates back to query text editor

pull/1855/head
Andrew Watkins 2017-08-14 14:15:48 -07:00
parent fee6b5e6b5
commit 97be9399ff
1 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,7 @@ const QueryMaker = ({
actions, actions,
queries, queries,
timeRange, timeRange,
templates,
onAddQuery, onAddQuery,
activeQuery, activeQuery,
onDeleteQuery, onDeleteQuery,
@ -43,6 +44,7 @@ const QueryMaker = ({
activeQuery.id, activeQuery.id,
actions.editRawTextAsync actions.editRawTextAsync
)} )}
templates={templates}
/> />
<SchemaExplorer <SchemaExplorer
query={activeQuery} query={activeQuery}
@ -85,6 +87,11 @@ QueryMaker.propTypes = {
activeQueryIndex: number, activeQueryIndex: number,
activeQuery: shape({}), activeQuery: shape({}),
onAddQuery: func.isRequired, onAddQuery: func.isRequired,
templates: arrayOf(
shape({
tempVar: string.isRequired,
})
).isRequired,
} }
export default QueryMaker export default QueryMaker