mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge branch 'fix-ngonchanges-not-working-for-themed-components_contribute-7.2' into fix-ngonchanges-not-working-for-themed-components_contribute-7.4
# Conflicts: # src/app/app.component.ts
This commit is contained in:

committed by
Tim Donohue

parent
7352d9e273
commit
8b57a2f6af
@@ -240,14 +240,7 @@ export class ThemeService {
|
|||||||
if (hasValue(parentThemeName)) {
|
if (hasValue(parentThemeName)) {
|
||||||
// inherit the head tags of the parent theme
|
// inherit the head tags of the parent theme
|
||||||
return this.createHeadTags(parentThemeName);
|
return this.createHeadTags(parentThemeName);
|
||||||
}
|
} else {
|
||||||
const defaultThemeConfig = getDefaultThemeConfig();
|
|
||||||
const defaultThemeName = defaultThemeConfig.name;
|
|
||||||
if (
|
|
||||||
hasNoValue(defaultThemeName) ||
|
|
||||||
themeName === defaultThemeName ||
|
|
||||||
themeName === BASE_THEME_NAME
|
|
||||||
) {
|
|
||||||
// last resort, use fallback favicon.ico
|
// last resort, use fallback favicon.ico
|
||||||
return [
|
return [
|
||||||
this.createHeadTag({
|
this.createHeadTag({
|
||||||
@@ -260,9 +253,6 @@ export class ThemeService {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// inherit the head tags of the default theme
|
|
||||||
return this.createHeadTags(defaultThemeName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return headTagConfigs.map(this.createHeadTag.bind(this));
|
return headTagConfigs.map(this.createHeadTag.bind(this));
|
||||||
|
Reference in New Issue
Block a user