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) => {
|
adjustStorage = async (add: boolean) => {
|
||||||
return async () => {
|
const dialogRef = openAdjustStorageDialog(this.dialogService, {
|
||||||
const dialogRef = openAdjustStorageDialog(this.dialogService, {
|
data: {
|
||||||
data: {
|
storageGbPrice: 4,
|
||||||
storageGbPrice: 4,
|
add: add,
|
||||||
add: add,
|
},
|
||||||
},
|
});
|
||||||
});
|
const result = await lastValueFrom(dialogRef.closed);
|
||||||
const result = await lastValueFrom(dialogRef.closed);
|
if (result === AdjustStorageDialogResult.Adjusted) {
|
||||||
if (result === AdjustStorageDialogResult.Adjusted) {
|
await this.load();
|
||||||
await this.load();
|
}
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
get subscriptionMarkedForCancel() {
|
get subscriptionMarkedForCancel() {
|
||||||
|
Loading…
Reference in New Issue
Block a user