mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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.');
|
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) {
|
if (this.validationErrors.length === 0) {
|
||||||
this.inputDataValid = true;
|
this.inputDataValid = true;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user