mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
adjustments for mas
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: b747830c5b...902d72457c
@@ -42,7 +42,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<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>
|
<b>{{'premiumManage' | i18n}}</b>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="primary" appBlurClick (click)="purchase()" *ngIf="!isPremium">
|
<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 {
|
export class PremiumComponent implements OnInit {
|
||||||
isPremium: boolean = false;
|
isPremium: boolean = false;
|
||||||
|
showManageMembership: boolean = false;
|
||||||
price: string = '$10';
|
price: string = '$10';
|
||||||
refreshPromise: Promise<any>;
|
refreshPromise: Promise<any>;
|
||||||
|
|
||||||
@@ -28,6 +29,7 @@ export class PremiumComponent implements OnInit {
|
|||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.isPremium = this.tokenService.getPremium();
|
this.isPremium = this.tokenService.getPremium();
|
||||||
|
this.showManageMembership = !this.platformUtilsService.isMacAppStore();
|
||||||
}
|
}
|
||||||
|
|
||||||
async refresh() {
|
async refresh() {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import {
|
|||||||
} from 'electron';
|
} from 'electron';
|
||||||
|
|
||||||
import { Main } from '../main';
|
import { Main } from '../main';
|
||||||
|
import { isMacAppStore } from '../scripts/utils';
|
||||||
|
|
||||||
import { ConstantsService } from 'jslib/services/constants.service';
|
import { ConstantsService } from 'jslib/services/constants.service';
|
||||||
|
|
||||||
@@ -521,9 +522,12 @@ export class MenuMain {
|
|||||||
label: this.main.i18nService.t('aboutBitwarden'),
|
label: this.main.i18nService.t('aboutBitwarden'),
|
||||||
role: 'about',
|
role: 'about',
|
||||||
},
|
},
|
||||||
updateMenuItem,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (!isMacAppStore()) {
|
||||||
|
firstMenuPart.push(updateMenuItem);
|
||||||
|
}
|
||||||
|
|
||||||
template.unshift({
|
template.unshift({
|
||||||
label: 'Bitwarden',
|
label: 'Bitwarden',
|
||||||
submenu: firstMenuPart.concat(firstMenuOptions, [
|
submenu: firstMenuPart.concat(firstMenuOptions, [
|
||||||
|
|||||||
Reference in New Issue
Block a user