fix: enable jira for new project when all settings are provided

This commit is contained in:
Johannes Millan 2019-08-29 18:19:02 +02:00
parent 228a75b2e9
commit d8e4fa757d

View file

@ -20,7 +20,10 @@ export class DialogJiraInitialSetupComponent {
this.jiraCfg = this.data.jiraCfg;
}
saveJiraCfg($event) {
this._matDialogRef.close($event);
saveJiraCfg(cfg: JiraCfg) {
this._matDialogRef.close({
...cfg,
isEnabled: !!(cfg && cfg.host && cfg.userName && cfg.password),
});
}
}