mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix create book dialog smoke test (#15848)
This commit is contained in:
@@ -81,34 +81,31 @@ export class CreateBookDialog {
|
||||
}).component();
|
||||
|
||||
this.bookNameInputBox = this.view.modelBuilder.inputBox()
|
||||
.withProperties({
|
||||
values: [],
|
||||
.withProps({
|
||||
value: '',
|
||||
enabled: true
|
||||
}).component();
|
||||
|
||||
this.saveLocationInputBox = this.view.modelBuilder.inputBox().withProperties({
|
||||
values: [],
|
||||
this.saveLocationInputBox = this.view.modelBuilder.inputBox().withProps({
|
||||
value: '',
|
||||
placeHolder: loc.locationBrowser,
|
||||
ariaLabel: loc.saveLocation,
|
||||
width: '400px'
|
||||
}).component();
|
||||
|
||||
this.contentFolderInputBox = this.view.modelBuilder.inputBox().withProperties({
|
||||
values: [],
|
||||
this.contentFolderInputBox = this.view.modelBuilder.inputBox().withProps({
|
||||
value: '',
|
||||
placeHolder: loc.selectContentFolder,
|
||||
ariaLabel: loc.contentFolder,
|
||||
width: '400px'
|
||||
}).component();
|
||||
|
||||
const browseFolderButton = view.modelBuilder.button().withProperties<azdata.ButtonProperties>({
|
||||
const browseFolderButton = view.modelBuilder.button().withProps({
|
||||
ariaLabel: loc.browse,
|
||||
iconPath: IconPathHelper.folder,
|
||||
width: '18px',
|
||||
height: '20px',
|
||||
}).component();
|
||||
|
||||
const browseContentFolderButton = view.modelBuilder.button().withProperties<azdata.ButtonProperties>({
|
||||
const browseContentFolderButton = view.modelBuilder.button().withProps({
|
||||
ariaLabel: loc.browse,
|
||||
iconPath: IconPathHelper.folder,
|
||||
width: '18px',
|
||||
@@ -147,7 +144,7 @@ export class CreateBookDialog {
|
||||
component: this.createHorizontalContainer(view, [this.saveLocationInputBox, browseFolderButton])
|
||||
},
|
||||
{
|
||||
title: loc.contentFolder,
|
||||
title: loc.contentFolderOptional,
|
||||
required: false,
|
||||
component: this.createHorizontalContainer(view, [this.contentFolderInputBox, browseContentFolderButton])
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user