Added fetch logic for controllers (#14380)

* . Added fetch logic for controllers (no need to create a new one everytime)
. Fixed retention logic

* Fix field reloading logic.
Fixed localized string
Removing hardcoded colors
This commit is contained in:
Aasim Khan
2021-02-22 19:00:39 -08:00
committed by GitHub
parent 9daaa1c58b
commit d21ee4dc9e
11 changed files with 570 additions and 310 deletions

View File

@@ -48,8 +48,10 @@ export class AccountsSelectionPage extends MigrationWizardPage {
this._azureAccountsDropdown.onValueChanged(async (value) => {
if (value.selected) {
this.migrationStateModel.azureAccount = this.migrationStateModel.getAccount(value.index);
this.migrationStateModel.subscriptions = undefined!;
this.migrationStateModel._azureAccount = this.migrationStateModel.getAccount(value.index);
this.migrationStateModel._subscriptions = undefined!;
this.migrationStateModel._targetSubscription = undefined!;
this.migrationStateModel._databaseBackup.subscription = undefined!;
}
});
@@ -82,7 +84,6 @@ export class AccountsSelectionPage extends MigrationWizardPage {
this._azureAccountsDropdown.loading = true;
try {
this._azureAccountsDropdown.values = await this.migrationStateModel.getAccountValues();
this.migrationStateModel.azureAccount = this.migrationStateModel.getAccount(0);
} finally {
this._azureAccountsDropdown.loading = false;
}