mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: only load default project from backend if it's not available on the target. this might happen when using gce authentication and provisioning
This commit is contained in:
@@ -14,10 +14,7 @@ export interface QueryMeta {
|
||||
export class StackdriverQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'partials/query.editor.html';
|
||||
target: {
|
||||
project: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
defaultProject: string;
|
||||
unit: string;
|
||||
metricType: string;
|
||||
service: string;
|
||||
@@ -38,10 +35,7 @@ export class StackdriverQueryCtrl extends QueryCtrl {
|
||||
defaultServiceValue = 'All Services';
|
||||
|
||||
defaults = {
|
||||
project: {
|
||||
id: 'default',
|
||||
name: 'loading project...',
|
||||
},
|
||||
defaultProject: 'loading project...',
|
||||
metricType: this.defaultDropdownValue,
|
||||
service: this.defaultServiceValue,
|
||||
metric: '',
|
||||
|
||||
Reference in New Issue
Block a user