From 10ad6f7119653254a607bea9a1657a38ead893d9 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Tue, 29 Jun 2021 11:46:12 -0700 Subject: [PATCH] Hide dropdown loading container when not used (#15934) * Hide dropdown loading container when not used * Remove unused --- .../modelComponents/dropdown.component.ts | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/sql/workbench/browser/modelComponents/dropdown.component.ts b/src/sql/workbench/browser/modelComponents/dropdown.component.ts index 7ad2636a0b..dc64c05f95 100644 --- a/src/sql/workbench/browser/modelComponents/dropdown.component.ts +++ b/src/sql/workbench/browser/modelComponents/dropdown.component.ts @@ -29,9 +29,9 @@ import { ILogService } from 'vs/platform/log/common/log'; template: `
-
+
-
+
@@ -114,11 +114,6 @@ export default class DropDownComponent extends ComponentBase !this.required || this.editable || !!this._selectBox.value); } - this._loadingBox = new SelectBox([this.getStatusText()], this.getStatusText(), this.contextViewService, this._loadingBoxContainer.nativeElement); - this._loadingBox.render(this._loadingBoxContainer.nativeElement); - this._register(this._loadingBox); - this._register(attachSelectBoxStyler(this._loadingBox, this.themeService)); - this._loadingBoxContainer.nativeElement.className = ''; // Removing the dropdown arrow icon from the right this.baseInit(); } @@ -137,9 +132,10 @@ export default class DropDownComponent extends ComponentBase(this.setValueProperties, newValue); }