mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix create book dialog clearing input boxes on browse cancel (#15713)
This commit is contained in:
@@ -116,11 +116,17 @@ export class CreateBookDialog {
|
|||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
browseFolderButton.onDidClick(async () => {
|
browseFolderButton.onDidClick(async () => {
|
||||||
this.saveLocationInputBox.value = await this.selectFolder();
|
const selectedFolder = await this.selectFolder();
|
||||||
|
if (selectedFolder) {
|
||||||
|
this.saveLocationInputBox.value = selectedFolder;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
browseContentFolderButton.onDidClick(async () => {
|
browseContentFolderButton.onDidClick(async () => {
|
||||||
this.contentFolderInputBox.value = await this.selectFolder();
|
const selectedFolder = await this.selectFolder();
|
||||||
|
if (selectedFolder) {
|
||||||
|
this.contentFolderInputBox.value = selectedFolder;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.formModel = this.view.modelBuilder.formContainer()
|
this.formModel = this.view.modelBuilder.formContainer()
|
||||||
|
|||||||
Reference in New Issue
Block a user