diff --git a/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift b/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift index 273eddb4..98393604 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift @@ -70,8 +70,7 @@ struct OpenVPNView: View { } var body: some View { - manualView - .modifier(providerModifier) + contentView .themeAnimation(on: draft, category: .modules) .moduleView(editor: editor, draft: draft, withName: !isServerPushed) .navigationDestination(for: Subroute.self, destination: destination) @@ -85,6 +84,16 @@ private extension OpenVPNView { draft.configurationBuilder ?? .init(withFallbacks: true) } + @ViewBuilder + var contentView: some View { + if isServerPushed { + manualView + } else { + manualView + .modifier(providerModifier) + } + } + var providerModifier: some ViewModifier { VPNProviderContentModifier( providerId: editor.binding(forProviderOf: draft.id),