bitwarden-estensione-browser/src/app/settings/user-billing.component.ts

25 lines
511 B
TypeScript
Raw Normal View History

2018-06-28 20:05:04 +02:00
import {
Component,
OnInit,
} from '@angular/core';
import { TokenService } from 'jslib/abstractions/token.service';
@Component({
selector: 'app-user-billing',
templateUrl: 'user-billing.component.html',
})
export class UserBillingComponent implements OnInit {
premium = false;
constructor(private tokenService: TokenService) { }
async ngOnInit() {
2018-06-29 05:05:49 +02:00
this.loadPremiumStatus();
}
loadPremiumStatus() {
2018-06-28 20:05:04 +02:00
this.premium = this.tokenService.getPremium();
}
}