From d8a2c940bf37945d8a9984785031fd9063fb7fb6 Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Tue, 1 May 2018 17:11:46 -0700 Subject: [PATCH] Remove notification informing user that their query cannot be displayed by the SchemaExplorer --- ui/src/dashboards/components/CellEditorOverlay.tsx | 7 ------- ui/src/dashboards/containers/DashboardPage.js | 2 -- 2 files changed, 9 deletions(-) diff --git a/ui/src/dashboards/components/CellEditorOverlay.tsx b/ui/src/dashboards/components/CellEditorOverlay.tsx index deba561e51..f7f858911b 100644 --- a/ui/src/dashboards/components/CellEditorOverlay.tsx +++ b/ui/src/dashboards/components/CellEditorOverlay.tsx @@ -44,10 +44,8 @@ import { CellQuery, Legend, Status, - Notification, } from 'src/types' import {ErrorHandling} from 'src/shared/decorators/errors' -import {notifyBuilderDisabled} from 'src/shared/copy/notifications' const staticLegend: Legend = { type: 'static', @@ -79,7 +77,6 @@ interface Props { gaugeColors: ColorNumber[] lineColors: ColorString[] cell: Cell - notify: (notification: Notification) => void } interface State { @@ -393,10 +390,6 @@ class CellEditorOverlay extends Component { const isUsingUserDefinedTempVars: boolean = !!userDefinedTempVarsInQuery.length - if (isUsingUserDefinedTempVars) { - this.props.notify(notifyBuilderDisabled()) - } - try { const selectedTempVars: Template[] = isUsingUserDefinedTempVars ? removeUnselectedTemplateValues(userDefinedTempVarsInQuery) diff --git a/ui/src/dashboards/containers/DashboardPage.js b/ui/src/dashboards/containers/DashboardPage.js index 45db47e522..aee57c1187 100644 --- a/ui/src/dashboards/containers/DashboardPage.js +++ b/ui/src/dashboards/containers/DashboardPage.js @@ -293,7 +293,6 @@ class DashboardPage extends Component { const {zoomedTimeRange} = this.state const {zoomedLower, zoomedUpper} = zoomedTimeRange const { - notify, source, sources, timeRange, @@ -399,7 +398,6 @@ class DashboardPage extends Component { thresholdsListColors={thresholdsListColors} gaugeColors={gaugeColors} lineColors={lineColors} - notify={notify} /> ) : null}