Add default PortalSettings footer link

This commit is contained in:
Torsten Brendgen
2026-08-18 15:56:41 +02:00
parent 64a157f7a8
commit eef1ac7394
8 changed files with 27 additions and 9 deletions
+4
View File
@@ -35,6 +35,10 @@ const branding: ISettingsProvider<any> = getSettingsProvider('custombranding');
assert(!!branding.storage.action, 'CustomBranding-Aktivierungsdefinition fehlt.');
assert(branding.storage.action.name === 'CustomBranding', 'CustomBranding Action-Name ist nicht stabil.');
assert(branding.storage.action.location === 'ClientSideExtension.ApplicationCustomizer', 'CustomBranding Action-Location ist ungültig.');
const defaultBranding: any = branding.createDefault(); // tslint:disable-line:no-any
assert(defaultBranding.placeholderbottom.elements.length === 1, 'Standard-Footer für CustomBranding fehlt.');
assert(defaultBranding.placeholderbottom.elements[0].children[0].attributes.href ===
'~sitecollection/SitePages/PortalSettings.aspx', 'Standard-Footer verweist nicht auf PortalSettings.');
const normalizedBranding: any = branding.normalize({ elements: [{ type: 'span' }], future: 7 }); // tslint:disable-line:no-any
assert(normalizedBranding.placeholdertop.elements.length === 1, 'Legacy-Branding-Elemente werden nicht übernommen.');
assert(normalizedBranding.future === 7, 'Unbekannte Branding-Properties gehen verloren.');