mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-29 12:55:21 +01:00
[PM 5011][PM-8562] migrate user subscription component (#9499)
* migrate user subscription along with update license dialog * migrate user subscription along with update license dialog * migrate user subscription along with update license dialog
This commit is contained in:
parent
13c2c2ecaa
commit
9322dacbd4
@ -146,19 +146,17 @@ export class UserSubscriptionComponent implements OnInit {
|
||||
}
|
||||
};
|
||||
|
||||
adjustStorage = (add: boolean) => {
|
||||
return async () => {
|
||||
const dialogRef = openAdjustStorageDialog(this.dialogService, {
|
||||
data: {
|
||||
storageGbPrice: 4,
|
||||
add: add,
|
||||
},
|
||||
});
|
||||
const result = await lastValueFrom(dialogRef.closed);
|
||||
if (result === AdjustStorageDialogResult.Adjusted) {
|
||||
await this.load();
|
||||
}
|
||||
};
|
||||
adjustStorage = async (add: boolean) => {
|
||||
const dialogRef = openAdjustStorageDialog(this.dialogService, {
|
||||
data: {
|
||||
storageGbPrice: 4,
|
||||
add: add,
|
||||
},
|
||||
});
|
||||
const result = await lastValueFrom(dialogRef.closed);
|
||||
if (result === AdjustStorageDialogResult.Adjusted) {
|
||||
await this.load();
|
||||
}
|
||||
};
|
||||
|
||||
get subscriptionMarkedForCancel() {
|
||||
|
Loading…
Reference in New Issue
Block a user