Added context menu for DBs in explorer view to backup & restore db. (#2277)

* Added context menu for DBs in explorer view to backup & restore db.
Fixed bug where progress bar didn't complete on backup/restore menuclick
#2084

* Fix merge conflicts
This commit is contained in:
AlexFsmn
2019-01-11 19:00:16 +01:00
committed by Karl Burtram
parent 18f7662209
commit bfb68254a4
3 changed files with 30 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ export class BackupUiService implements IBackupUiService {
let self = this;
return new Promise<void>((resolve, reject) => {
self.showBackupDialog(connection).then(() => {
resolve();
resolve(void 0);
}, error => {
reject();
});
@@ -145,7 +145,7 @@ export class BackupUiService implements IBackupUiService {
}
let backupOptions = this.getOptions(this._currentProvider);
return new TPromise<void>(() => {
return new TPromise<void>((resolve) => {
let uri = this._connectionManagementService.getConnectionUri(connection)
+ ProviderConnectionInfo.idSeparator
+ ConnectionUtils.ConnectionUriBackupIdAttributeName
@@ -168,6 +168,7 @@ export class BackupUiService implements IBackupUiService {
} else {
(backupDialog as BackupDialog).open(connection);
}
resolve(void 0);
});
}