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();
|
|
|
|
}
|
|
|
|
}
|