diff --git a/web/src/admin/common/ak-license-notice.ts b/web/src/admin/common/ak-license-notice.ts index 57fc461a3..db8eeca1f 100644 --- a/web/src/admin/common/ak-license-notice.ts +++ b/web/src/admin/common/ak-license-notice.ts @@ -9,14 +9,14 @@ import { customElement, property } from "lit/decorators.js"; @customElement("ak-license-notice") export class AkLicenceNotice extends WithLicenseSummary(AKElement) { @property() - message = msg("This feature requires an enterprise license."); + notice = msg("This feature requires an enterprise license."); render() { return this.hasEnterpriseLicense ? nothing : html` - ${this.message} + ${this.notice} ${msg("Learn more")} `; diff --git a/web/src/elements/Interface/licenseSummaryProvider.ts b/web/src/elements/Interface/licenseSummaryProvider.ts index 7e1d92537..64811ed12 100644 --- a/web/src/elements/Interface/licenseSummaryProvider.ts +++ b/web/src/elements/Interface/licenseSummaryProvider.ts @@ -10,14 +10,14 @@ type Constructor = abstract new (...args: any[]) => T; export function WithLicenseSummary>( superclass: T, - subscribe = true + subscribe = true, ) { abstract class WithEnterpriseProvider extends superclass { @consume({ context: authentikEnterpriseContext, subscribe }) public licenseSummary!: LicenseSummary; get hasEnterpriseLicense() { - return false; + return this.licenseSummary?.hasLicense; } }