bitwarden-estensione-browser/apps/web/src/app/components/premium-badge.component.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
504 B
TypeScript
Raw Normal View History

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