Logo overrides, custom index.html

This commit is contained in:
Mononaut
2024-04-27 20:39:53 +00:00
parent 0d9602693b
commit f9fd589af2
7 changed files with 1181 additions and 1087 deletions

View File

@@ -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) => {

View File

@@ -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();
}