mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix aria labels for database text boxes (#7628)
This commit is contained in:
@@ -79,19 +79,19 @@ export abstract class DacFxConfigPage extends BasePage {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async createDatabaseTextBox(): Promise<azdata.FormComponent> {
|
protected async createDatabaseTextBox(title: string): Promise<azdata.FormComponent> {
|
||||||
this.databaseTextBox = this.view.modelBuilder.inputBox().withProperties({
|
this.databaseTextBox = this.view.modelBuilder.inputBox().withProperties({
|
||||||
required: true
|
required: true
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
this.databaseTextBox.ariaLabel = localize('dacfx.databaseAriaLabel', "Database");
|
this.databaseTextBox.ariaLabel = title;
|
||||||
this.databaseTextBox.onTextChanged(async () => {
|
this.databaseTextBox.onTextChanged(async () => {
|
||||||
this.model.database = this.databaseTextBox.value;
|
this.model.database = this.databaseTextBox.value;
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
component: this.databaseTextBox,
|
component: this.databaseTextBox,
|
||||||
title: localize('dacFx.databaseNameTextBox', 'Target Database')
|
title: title
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,7 @@ export class DeployConfigPage extends DacFxConfigPage {
|
|||||||
async start(): Promise<boolean> {
|
async start(): Promise<boolean> {
|
||||||
let serverComponent = await this.createServerDropdown(true);
|
let serverComponent = await this.createServerDropdown(true);
|
||||||
let fileBrowserComponent = await this.createFileBrowser();
|
let fileBrowserComponent = await this.createFileBrowser();
|
||||||
this.databaseComponent = await this.createDatabaseTextBox();
|
this.databaseComponent = await this.createDatabaseTextBox(localize('dacFx.databaseNameTextBox', "Database Name"));
|
||||||
this.databaseComponent.title = localize('dacFx.databaseNameTextBox', 'Database Name');
|
|
||||||
this.databaseDropdownComponent = await this.createDeployDatabaseDropdown();
|
this.databaseDropdownComponent = await this.createDeployDatabaseDropdown();
|
||||||
this.databaseDropdownComponent.title = localize('dacFx.databaseNameDropdown', 'Database Name');
|
this.databaseDropdownComponent.title = localize('dacFx.databaseNameDropdown', 'Database Name');
|
||||||
let radioButtons = await this.createRadiobuttons();
|
let radioButtons = await this.createRadiobuttons();
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class ImportConfigPage extends DacFxConfigPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async start(): Promise<boolean> {
|
async start(): Promise<boolean> {
|
||||||
let databaseComponent = await this.createDatabaseTextBox();
|
let databaseComponent = await this.createDatabaseTextBox(localize('dacfx.targetDatabaseAriaLabel', "Target Database"));
|
||||||
let serverComponent = await this.createServerDropdown(true);
|
let serverComponent = await this.createServerDropdown(true);
|
||||||
let fileBrowserComponent = await this.createFileBrowser();
|
let fileBrowserComponent = await this.createFileBrowser();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user