Enable restore from server context only backup should be blocked (#6620)

This commit is contained in:
Udeesha Gautam
2019-08-06 14:57:54 -07:00
committed by GitHub
parent 4fc062ffd7
commit 4f72118140

View File

@@ -148,10 +148,6 @@ export class RestoreAction extends Task {
if (serverInfo && serverInfo.isCloud && profile.providerName === mssqlProviderName) {
return accessor.get<INotificationService>(INotificationService).info(nls.localize('restore.commandNotSupported', "Restore command is not supported for Azure SQL databases."));
}
if (!profile.databaseName && profile.providerName === mssqlProviderName) {
return accessor.get<INotificationService>(INotificationService).info(nls.localize('restore.commandNotSupportedForServer', "Restore command is not supported in Server Context. Please select a Database and try again."));
}
}
TaskUtilities.showRestore(