2022-03-29 21:55:47 +02:00
|
|
|
import { Component } from "@angular/core";
|
|
|
|
|
2022-06-14 17:10:53 +02:00
|
|
|
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
2022-03-29 21:55:47 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: "app-premium-badge",
|
|
|
|
template: `
|
2022-06-02 11:34:27 +02:00
|
|
|
<button *appNotPremium bitBadge badgeType="success" (click)="premiumRequired()">
|
2022-03-29 21:55:47 +02:00
|
|
|
{{ "premium" | i18n }}
|
|
|
|
</button>
|
|
|
|
`,
|
|
|
|
})
|
|
|
|
export class PremiumBadgeComponent {
|
|
|
|
constructor(private messagingService: MessagingService) {}
|
|
|
|
|
|
|
|
premiumRequired() {
|
|
|
|
this.messagingService.send("premiumRequired");
|
|
|
|
}
|
|
|
|
}
|