web: Jens requested that subscription be by default, and it's the right call.

This commit is contained in:
Ken Sternberg 2023-12-04 10:21:26 -08:00
parent d2a9b2a343
commit 297c29b231
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ type Constructor<T = object> = new (...args: any[]) => T;
export function WithAuthentikConfig<T extends Constructor<LitElement>>( export function WithAuthentikConfig<T extends Constructor<LitElement>>(
superclass: T, superclass: T,
subscribe = false, subscribe = true,
) { ) {
class WithAkConfigProvider extends superclass { class WithAkConfigProvider extends superclass {
@consume({ context: authentikConfigContext, subscribe }) @consume({ context: authentikConfigContext, subscribe })

View file

@ -47,7 +47,7 @@ class WCC {
export function WithCapabilitiesConfig<T extends Constructor<LitElement>>( export function WithCapabilitiesConfig<T extends Constructor<LitElement>>(
superclass: T, superclass: T,
subscribe = false, subscribe = true,
) { ) {
abstract class CapabilitiesContext extends superclass { abstract class CapabilitiesContext extends superclass {
@consume({ context: authentikConfigContext, subscribe }) @consume({ context: authentikConfigContext, subscribe })