mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
add label for database dropdown (#23015)
This commit is contained in:
@@ -78,14 +78,13 @@
|
|||||||
.taskbarSeparator {
|
.taskbarSeparator {
|
||||||
min-width: 1px;
|
min-width: 1px;
|
||||||
background-color:#A5A5A5;
|
background-color:#A5A5A5;
|
||||||
margin: 0px 16px;
|
margin: 0px 8px;
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskbarTextSeparator {
|
.taskbarTextSeparator {
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
margin-top: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Taskbar Icons */
|
/* Taskbar Icons */
|
||||||
|
|||||||
@@ -309,7 +309,6 @@ export class QueryEditor extends EditorPane {
|
|||||||
const content: ITaskbarContent[] = [
|
const content: ITaskbarContent[] = [
|
||||||
{ action: this._runQueryAction },
|
{ action: this._runQueryAction },
|
||||||
{ action: this._cancelQueryAction },
|
{ action: this._cancelQueryAction },
|
||||||
{ element: Taskbar.createTaskbarSeparator() },
|
|
||||||
{ action: this._toggleConnectDatabaseAction },
|
{ action: this._toggleConnectDatabaseAction },
|
||||||
{ action: this._changeConnectionAction }
|
{ action: this._changeConnectionAction }
|
||||||
];
|
];
|
||||||
@@ -327,6 +326,8 @@ export class QueryEditor extends EditorPane {
|
|||||||
// Only show the databases dropdown if the connection provider supports it.
|
// 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 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)) {
|
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 });
|
content.push({ action: this._listDatabasesAction });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user