Logo overrides, custom index.html
This commit is contained in:
@@ -50,7 +50,7 @@ export class EnterpriseService {
|
||||
if (this.stateService.env.customize?.branding) {
|
||||
const info = this.stateService.env.customize?.branding;
|
||||
this.insertMatomo(info.site_id);
|
||||
this.seoService.setEnterpriseTitle(info.title);
|
||||
this.seoService.setEnterpriseTitle(info.title, true);
|
||||
this.info$.next(info);
|
||||
} else {
|
||||
this.apiService.getEnterpriseInfo$(this.subdomain).subscribe((info) => {
|
||||
|
||||
@@ -50,8 +50,12 @@ export class SeoService {
|
||||
this.metaService.updateTag({ property: 'og:meta:ready', content: 'ready'});
|
||||
}
|
||||
|
||||
setEnterpriseTitle(title: string) {
|
||||
this.baseTitle = title + ' - ' + this.baseTitle;
|
||||
setEnterpriseTitle(title: string, override: boolean = false) {
|
||||
if (override) {
|
||||
this.baseTitle = title;
|
||||
} else {
|
||||
this.baseTitle = title + ' - ' + this.baseTitle;
|
||||
}
|
||||
this.resetTitle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user