From b7c82ed1267046d9da56542334a7d97cd927bd7b Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Fri, 12 Jan 2024 13:55:14 -0800 Subject: [PATCH] Remove some debugging info, fix a misspelling. --- web/src/admin/common/ak-license-notice.ts | 4 ++-- web/src/elements/Interface/licenseSummaryProvider.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } }