Skip to content

Commit 150748c

Browse files
committed
Added UI for editing CCTray authentication. Functionality still missing.
1 parent 65da774 commit 150748c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CCMenu/Source/Pipeline Window/EditPipelineSheet.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import SwiftUI
99

1010
struct EditPipelineSheet: View {
1111
@State var pipeline: Pipeline
12+
@State var useBasicAuth = false
13+
@State var credential = HTTPCredential(user: "", password: "")
1214
@State var name: String = ""
1315
@ObservedObject var model: PipelineModel
1416
@Environment(\.presentationMode) @Binding var presentation
@@ -18,6 +20,12 @@ struct EditPipelineSheet: View {
1820
Text("Edit Pipeline")
1921
.font(.headline)
2022
.padding(.bottom)
23+
24+
if pipeline.feed.type == .cctray {
25+
CCTrayAuthView(useBasicAuth: $useBasicAuth, credential: $credential)
26+
.padding(.bottom)
27+
}
28+
2129
Form {
2230
TextField("Name:", text: $name)
2331
.accessibilityIdentifier("Name field")

0 commit comments

Comments
 (0)