From 0020f4a2c3b92b9f2f1c393898c1d3a7ece8b9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 28 Nov 2023 14:55:21 +0100 Subject: [PATCH 1/2] self provide in base context --- .../src/libs/class-api/context-base.class.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/libs/class-api/context-base.class.ts b/src/Umbraco.Web.UI.Client/src/libs/class-api/context-base.class.ts index 9809888646..5c1a721c26 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/class-api/context-base.class.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/class-api/context-base.class.ts @@ -12,6 +12,6 @@ export abstract class UmbContextBase< > extends UmbBaseController { constructor(host: UmbControllerHost, contextToken: GivenContextToken | string) { super(host, contextToken.toString()); - //this.provideContext(contextToken, this as unknown as ContextType); + this.provideContext(contextToken, this as unknown as ContextType); } } From f5006ca78eb22dc0f6188f9c6690e3175b65b2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 28 Nov 2023 14:55:31 +0100 Subject: [PATCH 2/2] re introduce backoffice context --- .../src/apps/backoffice/backoffice.element.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Web.UI.Client/src/apps/backoffice/backoffice.element.ts b/src/Umbraco.Web.UI.Client/src/apps/backoffice/backoffice.element.ts index 4ed3fc5131..c033914f78 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/backoffice/backoffice.element.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/backoffice/backoffice.element.ts @@ -40,6 +40,7 @@ export class UmbBackofficeElement extends UmbLitElement { constructor() { super(); + new UmbBackofficeContext(this); new UmbBundleExtensionInitializer(this, umbExtensionsRegistry); new UmbEntryPointExtensionInitializer(this, umbExtensionsRegistry); new UmbServerExtensionRegistrator(this, umbExtensionsRegistry);