diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-header.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-header.element.ts index 33a60801bb..818be6ee88 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-header.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-header.element.ts @@ -86,13 +86,13 @@ export class UmbBackofficeHeader extends UmbContextConsumerMixin(LitElement) { private _allowedSection: Array = []; @state() - private _sections: Array> = []; + private _sections: Array = []; @state() - private _visibleSections: Array> = []; + private _visibleSections: Array = []; @state() - private _extraSections: Array> = []; + private _extraSections: Array = []; @state() private _currentSectionAlias = ''; @@ -124,7 +124,7 @@ export class UmbBackofficeHeader extends UmbContextConsumerMixin(LitElement) { this._open = !this._open; } - private _handleTabClick(e: PointerEvent, section: UmbExtensionManifest) { + private _handleTabClick(e: PointerEvent, section: UmbExtensionManifest) { const tab = e.currentTarget as any; // TODO: we need to be able to prevent the tab from setting the active state diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-main.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-main.element.ts index d227e00840..4d6d81499b 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-main.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/backoffice-main.element.ts @@ -55,7 +55,7 @@ export class UmbBackofficeMain extends UmbContextConsumerMixin(LitElement) { this._currentSectionSubscription?.unsubscribe(); } - private async _createSectionElement(section: UmbExtensionManifest) { + private async _createSectionElement(section: UmbExtensionManifest) { if (!section) return; // TODO: How do we handle dynamic imports of our files? diff --git a/src/Umbraco.Web.UI.Client/src/section.context.ts b/src/Umbraco.Web.UI.Client/src/section.context.ts index 4db9d6ecdc..5ca94e7179 100644 --- a/src/Umbraco.Web.UI.Client/src/section.context.ts +++ b/src/Umbraco.Web.UI.Client/src/section.context.ts @@ -4,8 +4,8 @@ import { UmbExtensionManifest, UmbExtensionRegistry, UmbManifestSectionMeta } fr export class UmbSectionContext { private _extensionRegistry!: UmbExtensionRegistry; - private _current: ReplaySubject> = new ReplaySubject(1); - public readonly current: Observable> = this._current.asObservable(); + private _current: ReplaySubject = new ReplaySubject(1); + public readonly current: Observable = this._current.asObservable(); constructor(_extensionRegistry: UmbExtensionRegistry) { this._extensionRegistry = _extensionRegistry; @@ -14,7 +14,7 @@ export class UmbSectionContext { getSections () { return this._extensionRegistry.extensions .pipe( - map((extensions: Array>) => extensions + map((extensions: Array) => extensions .filter(extension => extension.type === 'section') .sort((a: any, b: any) => b.meta.weight - a.meta.weight)) ); @@ -26,7 +26,7 @@ export class UmbSectionContext { async setCurrent (sectionAlias: string) { const sections = await firstValueFrom(this.getSections()); - const matchedSection = sections.find(section => section.alias === sectionAlias) as UmbExtensionManifest; + const matchedSection = sections.find(section => section.alias === sectionAlias) as UmbExtensionManifest; this._current.next(matchedSection); }