mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -05:00
Fix for : 4471 Backup/Restore shows in Context Menu for Azure DB (#4498)
* Remove Back Restore from Cloud db's Context menu * checking for null * Cleaning up the check
This commit is contained in:
@@ -181,7 +181,10 @@ export class ServerTreeActionProvider extends ContributableActionProvider {
|
||||
|
||||
this.addScriptingActions(context, actions);
|
||||
|
||||
if (isAvailableDatabaseNode) {
|
||||
let serverInfo = this._connectionManagementService.getServerInfo(context.profile.id);
|
||||
let isCloud = serverInfo && serverInfo.isCloud;
|
||||
|
||||
if (isAvailableDatabaseNode && !isCloud) {
|
||||
this.addBackupAction(context, actions);
|
||||
this.addRestoreAction(context, actions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user