Test connection string now uses the currently typed in connection string rather than the last saved one

This commit is contained in:
Isaac Abadi
2021-07-26 20:31:35 -07:00
parent fb5c13db27
commit 258d5ff495
5 changed files with 15 additions and 10 deletions

View File

@@ -307,9 +307,9 @@ export class SettingsComponent implements OnInit {
});
}
testConnectionString() {
testConnectionString(connection_string) {
this.testing_connection_string = true;
this.postsService.testConnectionString().subscribe(res => {
this.postsService.testConnectionString(connection_string).subscribe(res => {
this.testing_connection_string = false;
if (res['success']) {
this.postsService.openSnackBar('Connection successful!');