mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
adjustments for mas
This commit is contained in:
@@ -42,7 +42,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="primary" appBlurClick (click)="manage()" *ngIf="isPremium">
|
||||
<button type="button" class="primary" appBlurClick (click)="manage()"
|
||||
*ngIf="isPremium && showManageMembership">
|
||||
<b>{{'premiumManage' | i18n}}</b>
|
||||
</button>
|
||||
<button type="button" class="primary" appBlurClick (click)="purchase()" *ngIf="!isPremium">
|
||||
|
||||
@@ -19,6 +19,7 @@ import { TokenService } from 'jslib/abstractions/token.service';
|
||||
})
|
||||
export class PremiumComponent implements OnInit {
|
||||
isPremium: boolean = false;
|
||||
showManageMembership: boolean = false;
|
||||
price: string = '$10';
|
||||
refreshPromise: Promise<any>;
|
||||
|
||||
@@ -28,6 +29,7 @@ export class PremiumComponent implements OnInit {
|
||||
|
||||
async ngOnInit() {
|
||||
this.isPremium = this.tokenService.getPremium();
|
||||
this.showManageMembership = !this.platformUtilsService.isMacAppStore();
|
||||
}
|
||||
|
||||
async refresh() {
|
||||
|
||||
Reference in New Issue
Block a user