mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 19:48:37 -05:00
Update default values for Owner and Collation in Create Database dialog (#23332)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/{#version#}/microsoft.sqltools.servicelayer-{#fileName#}",
|
||||
"version": "4.8.0.16",
|
||||
"version": "4.8.0.17",
|
||||
"downloadFileNames": {
|
||||
"Windows_86": "win-x86-net7.0.zip",
|
||||
"Windows_64": "win-x64-net7.0.zip",
|
||||
|
||||
@@ -35,6 +35,7 @@ export class DatabaseDialog extends ObjectManagementDialogBase<ObjectManagement.
|
||||
containers.push(this.createLabelInputContainer(localizedConstants.NameText, this._nameInput));
|
||||
|
||||
if (this.viewInfo.loginNames?.length > 0) {
|
||||
this.objectInfo.owner = this.viewInfo.loginNames[0];
|
||||
let ownerDropbox = this.createDropdown(localizedConstants.OwnerText, async () => {
|
||||
this.objectInfo.owner = ownerDropbox.value as string;
|
||||
}, this.viewInfo.loginNames, this.viewInfo.loginNames[0]);
|
||||
@@ -47,6 +48,7 @@ export class DatabaseDialog extends ObjectManagementDialogBase<ObjectManagement.
|
||||
private initializeOptionsSection(): azdata.GroupContainer {
|
||||
let containers: azdata.Component[] = [];
|
||||
if (this.viewInfo.collationNames?.length > 0) {
|
||||
this.objectInfo.collationName = this.viewInfo.collationNames[0];
|
||||
let collationDropbox = this.createDropdown(localizedConstants.CollationText, async () => {
|
||||
this.objectInfo.collationName = collationDropbox.value as string;
|
||||
}, this.viewInfo.collationNames, this.viewInfo.collationNames[0]);
|
||||
|
||||
Reference in New Issue
Block a user