Skip to content

Commit

Permalink
Show interactive toggle in prompt
Browse files Browse the repository at this point in the history
Only hide method.
  • Loading branch information
keeshux committed Jan 25, 2025
1 parent b63b0e7 commit 51b1f5e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ public struct OpenVPNCredentialsView: View {
public var body: some View {
debugChanges()
return Group {
if !isAuthenticating {
interactiveSection
}
interactiveSection
inputSection
guidanceSection
}
Expand All @@ -111,7 +109,7 @@ private extension OpenVPNCredentialsView {
}
.themeRowWithSubtitle(interactiveFooter)

if isInteractive {
if isInteractive && !isAuthenticating {
Picker(Strings.Unlocalized.otp, selection: $builder.otpMethod) {
ForEach(otpMethods, id: \.self) {
Text($0.localizedDescription(style: .entity))
Expand Down

0 comments on commit 51b1f5e

Please sign in to comment.