mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Deprecation: use locationService in favor of getLocationSrv (#44813)
* deprecated * updating documentation. * added deprecation notice. * Replacing deprecated getLocationSrv. * Update docs/sources/developers/plugins/migration-guide.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs/sources/developers/plugins/migration-guide.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs/sources/developers/plugins/migration-guide.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs/sources/developers/plugins/migration-guide.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * updating according to feedback. * Update docs/sources/developers/plugins/migration-guide.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs/sources/developers/plugins/migration-guide.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { QueryGroup } from 'app/features/query/components/QueryGroup';
|
||||
import { PanelModel } from '../../state';
|
||||
import { getLocationSrv } from '@grafana/runtime';
|
||||
import { locationService } from '@grafana/runtime';
|
||||
import { QueryGroupDataSource, QueryGroupOptions } from 'app/types';
|
||||
import { DataQuery } from '@grafana/data';
|
||||
import { getDatasourceSrv } from 'app/features/plugins/datasource_srv';
|
||||
@@ -47,9 +47,9 @@ export class PanelEditorQueries extends PureComponent<Props> {
|
||||
};
|
||||
|
||||
onOpenQueryInspector = () => {
|
||||
getLocationSrv().update({
|
||||
query: { inspect: this.props.panel.id, inspectTab: 'query' },
|
||||
partial: true,
|
||||
locationService.partial({
|
||||
inspect: this.props.panel.id,
|
||||
inspectTab: 'query',
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user