mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add aria-label to kube config input box (#15743)
This commit is contained in:
@@ -18,12 +18,15 @@ export class FilePicker {
|
||||
public readonly filePickerButton: azdata.ButtonComponent;
|
||||
constructor(
|
||||
modelBuilder: azdata.ModelBuilder,
|
||||
initialPath: string, onNewDisposableCreated: (disposable: vscode.Disposable) => void
|
||||
initialPath: string,
|
||||
onNewDisposableCreated: (disposable: vscode.Disposable) => void,
|
||||
ariaLabel: string
|
||||
) {
|
||||
const buttonWidth = 80;
|
||||
this.filePathInputBox = modelBuilder.inputBox()
|
||||
.withProperties<azdata.InputBoxProperties>({
|
||||
value: initialPath,
|
||||
ariaLabel: ariaLabel,
|
||||
width: 350
|
||||
}).component();
|
||||
|
||||
|
||||
@@ -96,7 +96,8 @@ abstract class ControllerDialogBase extends InitializingComponent {
|
||||
this.kubeConfigInputBox = new FilePicker(
|
||||
this.modelBuilder,
|
||||
controllerInfo?.kubeConfigFilePath || getDefaultKubeConfigPath(),
|
||||
(disposable) => this._toDispose.push(disposable)
|
||||
(disposable) => this._toDispose.push(disposable),
|
||||
loc.controllerKubeConfig
|
||||
);
|
||||
this.modelBuilder.inputBox()
|
||||
.withProps({
|
||||
|
||||
Reference in New Issue
Block a user