Skip to content

Commit

Permalink
update config logic
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Sep 11, 2024
1 parent 2cdfcc7 commit bd183cb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CSETWebNg/src/app/services/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ export class ConfigService {
this.helpContactEmail = this.config.helpContactEmail;
this.helpContactPhone = this.config.helpContactPhone;
this.csetGithubApiUrl = this.config.csetGithubApiUrl;

this.getDhsEmail().subscribe((resp: string) => {
this.dhsEmail = resp;
if (!this.helpContactEmail) {
this.helpContactEmail = resp;
}
});
// configure the reference document URL if the "library" property is defined
// or if passed in as query param and stored as local storage variable. Local storage should
// take precedence over the config file, since Electron uses it to dynamically set the port.
Expand All @@ -214,9 +219,6 @@ export class ConfigService {
this.checkOnlineStatusFromConfig();
this.populateLabelValues();
this.initialized = true;
this.getDhsEmail().subscribe((resp: string) => {
this.dhsEmail = resp;
})
}

checkOnlineStatusFromConfig() {
Expand Down

0 comments on commit bd183cb

Please sign in to comment.