Merge branch 'web/config-provider' into web/config-provider-2-tenant

* web/config-provider:
  web: Jens requested that subscription be  by default, and it's the right call.
  web: prettier had opinions about the README
This commit is contained in:
Ken Sternberg 2023-12-04 10:21:44 -08:00
commit f669222529
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>>(
superclass: T,
subscribe = false,
subscribe = true,
) {
abstract class WithAkConfigProvider extends superclass {
@consume({ context: authentikConfigContext, subscribe })

View file

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