enabled button to import queries from sql files (#2042)

This commit is contained in:
Aditya Bist
2018-07-27 13:44:20 -07:00
committed by GitHub
parent 332951bc8e
commit 10eeb5374f
3 changed files with 41 additions and 9 deletions

View File

@@ -143,13 +143,16 @@ export class JobStepDialog {
width: '80px',
isFile: true
}).component();
this.openButton.enabled = false;
this.parseButton = view.modelBuilder.button()
.withProperties({
label: this.ParseCommandText,
width: '80px',
isFile: false
}).component();
this.openButton.onDidClick(e => {
let queryContent = e;
this.commandTextBox.value = queryContent;
});
this.parseButton.onDidClick(e => {
if (this.commandTextBox.value) {
queryProvider.parseSyntax(this.ownerUri, this.commandTextBox.value).then(result => {