forked from chat21/chat21-ionic
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabriele Panico
committed
Mar 19, 2024
1 parent
0bde92d
commit b29b31c
Showing
7 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,8 @@ export class BrandService { | |
COMPANY_SITE_NAME:"tiledesk.com", | ||
COMPANY_SITE_URL:"https://www.tiledesk.com", | ||
CONTACT_US_EMAIL: "[email protected]", | ||
COMPANY_PRIMARY_COLOR:"" | ||
COMPANY_PRIMARY_COLOR:"", | ||
DOCS:false | ||
} | ||
} | ||
|
||
|
@@ -184,17 +185,17 @@ export class BrandService { | |
if (url && url !== 'CHANGEIT') { | ||
const data = await this.httpClient.get(url).toPromise(); | ||
|
||
console.log('[BRAND-SERV] **** GET BRAND FROM URL ****', url); | ||
this.logger.log('[BRAND-SERV] **** GET BRAND FROM URL ****', url); | ||
|
||
this.brand =data | ||
|
||
console.log('[BRAND-SERV] loadBrand - brand: ', this.brand); | ||
this.logger.log('[BRAND-SERV] loadBrand - brand: ', this.brand); | ||
|
||
const resources = new BrandResources(this); | ||
resources.loadResources() | ||
} | ||
} catch (err) { | ||
console.error('[BRAND-SERV] loadBrand error : ', err); | ||
this.logger.error('[BRAND-SERV] loadBrand error : ', err); | ||
|
||
this.brand = this._brand; | ||
} | ||
|
@@ -203,7 +204,7 @@ export class BrandService { | |
} | ||
|
||
getBrand() { | ||
console.log('BrandService getBrand has been called - brand: ', this.brand); | ||
//this.logger.log('BrandService getBrand has been called - brand: ', this.brand); | ||
return { ...this.brand['CHAT'], ...this.brand['COMMON'] } | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters