mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
add label for database dropdown (#23015)
This commit is contained in:
@@ -78,14 +78,13 @@
|
||||
.taskbarSeparator {
|
||||
min-width: 1px;
|
||||
background-color:#A5A5A5;
|
||||
margin: 0px 16px;
|
||||
margin: 0px 8px;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.taskbarTextSeparator {
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* Taskbar Icons */
|
||||
|
||||
@@ -309,7 +309,6 @@ export class QueryEditor extends EditorPane {
|
||||
const content: ITaskbarContent[] = [
|
||||
{ action: this._runQueryAction },
|
||||
{ action: this._cancelQueryAction },
|
||||
{ element: Taskbar.createTaskbarSeparator() },
|
||||
{ action: this._toggleConnectDatabaseAction },
|
||||
{ action: this._changeConnectionAction }
|
||||
];
|
||||
@@ -327,6 +326,8 @@ export class QueryEditor extends EditorPane {
|
||||
// Only show the databases dropdown if the connection provider supports it.
|
||||
// If the provider we're using isn't registered yet then default to not showing it - we'll update once the provider is registered
|
||||
if (this.capabilitiesService.getCapabilities(providerId)?.connection?.connectionOptions?.find(option => option.specialValueType === ConnectionOptionSpecialType.databaseName)) {
|
||||
content.push({ element: Taskbar.createTaskbarSeparator() });
|
||||
content.push({ element: Taskbar.createTaskbarText(localize("queryActions.selectDatabase.label", "Database:")) });
|
||||
content.push({ action: this._listDatabasesAction });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user