From 297c29b2318cabe2c64aa0a1ac4f844652c4dfc4 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Mon, 4 Dec 2023 10:21:26 -0800 Subject: [PATCH] web: Jens requested that subscription be by default, and it's the right call. --- web/src/elements/Interface/authentikConfigProvider.ts | 2 +- web/src/elements/Interface/capabilitiesProvider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/elements/Interface/authentikConfigProvider.ts b/web/src/elements/Interface/authentikConfigProvider.ts index 7fba78923..2f2bbcf43 100644 --- a/web/src/elements/Interface/authentikConfigProvider.ts +++ b/web/src/elements/Interface/authentikConfigProvider.ts @@ -10,7 +10,7 @@ type Constructor = new (...args: any[]) => T; export function WithAuthentikConfig>( superclass: T, - subscribe = false, + subscribe = true, ) { class WithAkConfigProvider extends superclass { @consume({ context: authentikConfigContext, subscribe }) diff --git a/web/src/elements/Interface/capabilitiesProvider.ts b/web/src/elements/Interface/capabilitiesProvider.ts index cf2740d9c..402653880 100644 --- a/web/src/elements/Interface/capabilitiesProvider.ts +++ b/web/src/elements/Interface/capabilitiesProvider.ts @@ -47,7 +47,7 @@ class WCC { export function WithCapabilitiesConfig>( superclass: T, - subscribe = false, + subscribe = true, ) { abstract class CapabilitiesContext extends superclass { @consume({ context: authentikConfigContext, subscribe })