File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/Certify.UI.Shared/ViewModel Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -148,14 +148,12 @@ public bool UsesRemoteOptions
148148 }
149149 else
150150 {
151- if ( SelectedItem . ChallengeProvider != StandardAuthTypes . STANDARD_AUTH_LOCAL && SelectedItem . ChallengeProvider != StandardAuthTypes . STANDARD_AUTH_LOCAL_AS_USER )
152- {
153- return DeploymentProvider . SupportsRemoteTarget && ( DeploymentProvider . SupportedContexts . HasFlag ( DeploymentContextType . SSH ) || DeploymentProvider . SupportedContexts . HasFlag ( DeploymentContextType . WindowsNetwork ) ) ;
154- }
155- else
156- {
157- return false ;
158- }
151+ var enableRemoteTarget =
152+ SelectedItem . ChallengeProvider == StandardAuthTypes . STANDARD_AUTH_SSH
153+ && DeploymentProvider . SupportsRemoteTarget
154+ && DeploymentProvider . SupportedContexts . HasFlag ( DeploymentContextType . SSH ) ;
155+
156+ return enableRemoteTarget ;
159157 }
160158 }
161159 }
You can’t perform that action at this time.
0 commit comments