parent
2155fe1892
commit
ae9e200618
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue