Add default PortalSettings footer link
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user