Remove some debugging info, fix a misspelling.
This commit is contained in:
parent
9dfb0424a4
commit
b7c82ed126
|
@ -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`
|
||||
<ak-alert class="pf-c-radio__description" inline>
|
||||
${this.message}
|
||||
${this.notice}
|
||||
<a href="#/enterprise/licenses">${msg("Learn more")}</a>
|
||||
</ak-alert>
|
||||
`;
|
||||
|
|
|
@ -10,14 +10,14 @@ type Constructor<T = object> = abstract new (...args: any[]) => T;
|
|||
|
||||
export function WithLicenseSummary<T extends Constructor<LitElement>>(
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue