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:
commit
f669222529
|
@ -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,
|
||||||
) {
|
) {
|
||||||
abstract class WithAkConfigProvider extends superclass {
|
abstract class WithAkConfigProvider extends superclass {
|
||||||
@consume({ context: authentikConfigContext, subscribe })
|
@consume({ context: authentikConfigContext, subscribe })
|
||||||
|
|
|
@ -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 })
|
||||||
|
|
Reference in a new issue