diff --git a/public/app/plugins/datasource/stackdriver/angular_wrappers.ts b/public/app/plugins/datasource/stackdriver/angular_wrappers.ts index b5e18c77d03..6881632ecbf 100644 --- a/public/app/plugins/datasource/stackdriver/angular_wrappers.ts +++ b/public/app/plugins/datasource/stackdriver/angular_wrappers.ts @@ -7,7 +7,6 @@ export function registerAngularDirectives() { 'onQueryChange', 'onExecuteQuery', ['events', { watchDepth: 'reference' }], - ['uiSegmentSrv', { watchDepth: 'reference' }], ['datasource', { watchDepth: 'reference' }], ]); } diff --git a/public/app/plugins/datasource/stackdriver/components/Filter.tsx b/public/app/plugins/datasource/stackdriver/components/Filter.tsx index aab0d2e7be9..0bff47e809d 100644 --- a/public/app/plugins/datasource/stackdriver/components/Filter.tsx +++ b/public/app/plugins/datasource/stackdriver/components/Filter.tsx @@ -12,7 +12,6 @@ export interface Props { metricType: string; templateSrv: any; target: Target; - uiSegmentSrv: any; datasource: any; } diff --git a/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx b/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx index d57e33dfa0e..b99865f5070 100644 --- a/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx +++ b/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx @@ -17,7 +17,6 @@ export interface Props { target: Target; events: any; datasource: any; - uiSegmentSrv: any; } interface State extends Target { @@ -129,7 +128,7 @@ export class QueryEditor extends React.Component { lastQuery, lastQueryError, } = this.state; - const { datasource, uiSegmentSrv } = this.props; + const { datasource } = this.props; return ( @@ -146,7 +145,6 @@ export class QueryEditor extends React.Component { filtersChanged={value => this.handleChange('filters', value)} groupBysChanged={value => this.handleChange('groupBys', value)} target={this.state} - uiSegmentSrv={uiSegmentSrv} templateSrv={datasource.templateSrv} datasource={datasource} metricType={metric ? metric.type : ''} diff --git a/public/app/plugins/datasource/stackdriver/partials/query.editor.html b/public/app/plugins/datasource/stackdriver/partials/query.editor.html index 58aa1ae8d99..67878c6380c 100755 --- a/public/app/plugins/datasource/stackdriver/partials/query.editor.html +++ b/public/app/plugins/datasource/stackdriver/partials/query.editor.html @@ -5,6 +5,5 @@ datasource="ctrl.datasource" on-query-change="(ctrl.handleQueryChange)" on-execute-query="(ctrl.handleExecuteQuery)" - ui-segment-srv="ctrl.uiSegmentSrv" > diff --git a/public/app/plugins/datasource/stackdriver/query_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_ctrl.ts index b41fa1e4b23..b7c1ed8bd41 100644 --- a/public/app/plugins/datasource/stackdriver/query_ctrl.ts +++ b/public/app/plugins/datasource/stackdriver/query_ctrl.ts @@ -8,12 +8,10 @@ import { Target } from './types'; export class StackdriverQueryCtrl extends QueryCtrl { static templateUrl = 'partials/query.editor.html'; - uiSegmentSrv: any; /** @ngInject */ - constructor($scope, $injector, uiSegmentSrv) { + constructor($scope, $injector) { super($scope, $injector); - this.uiSegmentSrv = uiSegmentSrv; react2AngularDirective('stackdriverPicker', StackdriverPicker, [ 'options', 'onChange',