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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user