1
0
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:
vinith-kovan 2024-06-04 23:26:20 +05:30 committed by GitHub
parent 13c2c2ecaa
commit 9322dacbd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() {