Connection Dialog: Dropdown for database name (#583)

* dropdown now lets databases

* show databases for SQL Login too

* localized strings

* removed unnecesssary logic

* fixed dropdown height, case-insensitive filter and alignement

* added cache for connections
This commit is contained in:
Aditya Bist
2018-02-07 06:21:03 +05:30
committed by GitHub
parent 579e6bf0cb
commit a8c7c69509
4 changed files with 85 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ export class DropdownRenderer implements tree.IRenderer {
public renderTemplate(tree: tree.ITree, templateId: string, container: HTMLElement) {
const row = $('div.list-row').style('height', '22px').style('padding-left', '5px').getHTMLElement();
DOM.append(container, row);
const label = $('span.label').style('margin', 'auto').getHTMLElement();
const label = $('span.label').style('margin', 'auto').style('vertical-align', 'middle').getHTMLElement();
DOM.append(row, label);
return { label };
@@ -91,7 +91,7 @@ export class DropdownFilter extends TreeDefaults.DefaultFilter {
public filterString: string;
public isVisible(tree: tree.ITree, element: Resource): boolean {
return element.value.includes(this.filterString);
return element.value.toLowerCase().includes(this.filterString.toLowerCase());
}
}