mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
stackdriver: display error message if project name is not present in jwt file
This commit is contained in:
parent
9fb1d3a9a6
commit
835f1d788e
@ -45,6 +45,10 @@ export class StackdriverConfigCtrl {
|
||||
this.validationErrors.push('Client Email field missing in JWT file.');
|
||||
}
|
||||
|
||||
if (!jwt.project_id || jwt.project_id.length === 0) {
|
||||
this.validationErrors.push('Project Id field missing in JWT file.');
|
||||
}
|
||||
|
||||
if (this.validationErrors.length === 0) {
|
||||
this.inputDataValid = true;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user