[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
1 changed files with 11 additions and 13 deletions

View File

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