mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fixing the resource name passed to create sql migration api (#16470)
This commit is contained in:
@@ -346,7 +346,12 @@ export class CreateSqlMigrationServiceDialog {
|
|||||||
private async populateResourceGroups(): Promise<void> {
|
private async populateResourceGroups(): Promise<void> {
|
||||||
this.migrationServiceResourceGroupDropdown.loading = true;
|
this.migrationServiceResourceGroupDropdown.loading = true;
|
||||||
try {
|
try {
|
||||||
this.migrationServiceResourceGroupDropdown.values = await this._model.getAzureResourceGroupDropdownValues(this._model._targetSubscription);
|
this.migrationServiceResourceGroupDropdown.values = (await this._model.getAzureResourceGroupDropdownValues(this._model._targetSubscription)).map(v => {
|
||||||
|
return {
|
||||||
|
name: v.displayName,
|
||||||
|
displayName: v.displayName
|
||||||
|
};
|
||||||
|
});
|
||||||
const selectedResourceGroupValue = this.migrationServiceResourceGroupDropdown.values.find(v => v.name.toLowerCase() === this._resourceGroupPreset.toLowerCase());
|
const selectedResourceGroupValue = this.migrationServiceResourceGroupDropdown.values.find(v => v.name.toLowerCase() === this._resourceGroupPreset.toLowerCase());
|
||||||
this.migrationServiceResourceGroupDropdown.value = (selectedResourceGroupValue) ? selectedResourceGroupValue : this.migrationServiceResourceGroupDropdown.values[0];
|
this.migrationServiceResourceGroupDropdown.value = (selectedResourceGroupValue) ? selectedResourceGroupValue : this.migrationServiceResourceGroupDropdown.values[0];
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user