stackdriver: display error message if project name is not present in jwt file

This commit is contained in:
Erik Sundell 2018-10-10 11:01:02 +02:00
parent 9fb1d3a9a6
commit 835f1d788e

View File

@ -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;