mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 01:25:38 -05:00
Make connection mode a displayname (#20068)
* dropdown not supporting dynamic enablement * paused for weekend * Make connection mode display with capitalization but value lowercase * Undo changes in modelviewutils Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
@@ -70,7 +70,7 @@ export class ControllerModel {
|
||||
|
||||
public async refresh(showErrors: boolean = true, namespace: string): Promise<void> {
|
||||
await this.refreshController(showErrors, namespace);
|
||||
if (this._controllerConfig?.spec.settings.azure.connectionMode === ConnectionMode.direct) {
|
||||
if (this._controllerConfig?.spec.settings.azure.connectionMode.toLowerCase() === ConnectionMode.direct) {
|
||||
await this.refreshDirectMode(this._controllerConfig?.spec.settings.azure.resourceGroup, namespace);
|
||||
} else {
|
||||
await this.refreshIndirectMode(namespace);
|
||||
|
||||
Reference in New Issue
Block a user