Cleanup publish database dialog and test sqllint errors (#11178)

* cleanup publish database dialog and test

* fix more tests

* fix other tests

* add back skips

* use Promise.resolve()
This commit is contained in:
Kim Santiago
2020-07-02 17:02:52 -07:00
committed by GitHub
parent 29509ccfbb
commit 3306f386f0
7 changed files with 24 additions and 24 deletions

View File

@@ -253,7 +253,7 @@ export class PublishDatabaseDialog {
}).component();
this.connectionsRadioButton.checked = true;
this.connectionsRadioButton.onDidClick(async () => {
this.connectionsRadioButton.onDidClick(() => {
this.formBuilder!.removeFormItem(<azdata.FormComponent>this.dataSourcesFormComponent);
this.formBuilder!.insertFormItem(<azdata.FormComponent>this.targetConnectionFormComponent, 2);
this.connectionIsDataSource = false;
@@ -266,7 +266,7 @@ export class PublishDatabaseDialog {
label: constants.dataSourceRadioButtonLabel
}).component();
this.dataSourcesRadioButton.onDidClick(async () => {
this.dataSourcesRadioButton.onDidClick(() => {
this.formBuilder!.removeFormItem(<azdata.FormComponent>this.targetConnectionFormComponent);
this.formBuilder!.insertFormItem(<azdata.FormComponent>this.dataSourcesFormComponent, 2);
this.connectionIsDataSource = true;
@@ -423,7 +423,7 @@ export class PublishDatabaseDialog {
this.profileSqlCmdVars = result.sqlCmdVariables;
const data = this.convertSqlCmdVarsToTableFormat(this.getSqlCmdVariablesForPublish());
(<azdata.TableComponent>this.sqlCmdVariablesTable).updateProperties({
await (<azdata.TableComponent>this.sqlCmdVariablesTable).updateProperties({
data: data
});