mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Added check for .toLowerCase and added upgrade message for clarity. (#20187)
Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
@@ -204,7 +204,7 @@ export class ConnectToControllerDialog extends ControllerDialogBase {
|
||||
controllerModel.info.connectionMode = <string>controllerModel.controllerConfig?.spec.settings.azure.connectionMode.toLowerCase();
|
||||
controllerModel.info.location = <string>controllerModel.controllerConfig?.spec.settings.azure.location;
|
||||
|
||||
if (controllerModel.info.connectionMode === ConnectionMode.direct) {
|
||||
if (controllerModel.info.connectionMode.toLowerCase() === ConnectionMode.direct) {
|
||||
const rawCustomLocation = <string>controllerModel.controllerConfig?.metadata.annotations['management.azure.com/customLocation'];
|
||||
const exp = /custom[lL]ocations\/([\S]*)/;
|
||||
controllerModel.info.customLocation = <string>exp.exec(rawCustomLocation)?.pop();
|
||||
|
||||
Reference in New Issue
Block a user