mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-24 18:47:10 -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:
committed by
Karl Burtram
parent
8354ccd76d
commit
a230e24af0
@@ -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