Fixing migration private preview bugs WIP 3 (#14928)

* Adding server name to wizard and dialog title
Surfacing async errors
Fixing a bunch of strings to match the mockup

* Adding auto refresh for migration status

* Removing errors for sql vm migration

* using new logic to get sql server username

* Fixing help links

* Removing unncessary await
This commit is contained in:
Aasim Khan
2021-03-31 10:19:59 -07:00
committed by GitHub
parent 00d2fadb7d
commit e762f19815
18 changed files with 198 additions and 106 deletions

View File

@@ -147,10 +147,6 @@ export class CreateSqlMigrationServiceDialog {
value: constants.MIGRATION_SERVICE_DIALOG_DESCRIPTION
}).component();
const formHeading = this._view.modelBuilder.text().withProps({
value: constants.CREATE_SERVICE_FORM_HEADING
}).component();
const subscriptionDropdownLabel = this._view.modelBuilder.text().withProps({
value: constants.SUBSCRIPTION
}).component();
@@ -184,9 +180,17 @@ export class CreateSqlMigrationServiceDialog {
value: await this.migrationStateModel.getLocationDisplayName(this.migrationStateModel._targetServerInstance.location)
}).component();
const targetlabel = this._view.modelBuilder.text().withProps({
value: constants.TARGET
}).component();
const targetText = this._view.modelBuilder.inputBox().withProps({
enabled: false,
value: constants.AZURE_SQL
}).component();
const flexContainer = this._view.modelBuilder.flexContainer().withItems([
dialogDescription,
formHeading,
subscriptionDropdownLabel,
this.migrationServiceSubscription,
locationDropdownLabel,
@@ -194,7 +198,9 @@ export class CreateSqlMigrationServiceDialog {
resourceGroupDropdownLabel,
this.migrationServiceResourceGroupDropdown,
migrationServiceNameLabel,
this.migrationServiceNameText
this.migrationServiceNameText,
targetlabel,
targetText
]).withLayout({
flexFlow: 'column'
}).component();
@@ -257,8 +263,12 @@ export class CreateSqlMigrationServiceDialog {
}
}).component();
const setupIRdescription = this._view.modelBuilder.text().withProps({
value: constants.SERVICE_CONTAINER_DESCRIPTION,
const setupIRdescription1 = this._view.modelBuilder.text().withProps({
value: constants.SERVICE_CONTAINER_DESCRIPTION1,
}).component();
const setupIRdescription2 = this._view.modelBuilder.text().withProps({
value: constants.SERVICE_CONTAINER_DESCRIPTION2,
}).component();
const irSetupStep1Text = this._view.modelBuilder.text().withProps({
@@ -353,7 +363,8 @@ export class CreateSqlMigrationServiceDialog {
this._setupContainer = this._view.modelBuilder.flexContainer().withItems(
[
setupIRHeadingText,
setupIRdescription,
setupIRdescription1,
setupIRdescription2,
irSetupStep1Text,
irSetupStep2Text,
this.migrationServiceAuthKeyTable,