Skip to content

Commit

Permalink
Added UI for editing CCTray authentication. Functionality still missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Apr 1, 2024
1 parent 65da774 commit 150748c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CCMenu/Source/Pipeline Window/EditPipelineSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import SwiftUI

struct EditPipelineSheet: View {
@State var pipeline: Pipeline
@State var useBasicAuth = false
@State var credential = HTTPCredential(user: "", password: "")
@State var name: String = ""
@ObservedObject var model: PipelineModel
@Environment(\.presentationMode) @Binding var presentation
Expand All @@ -18,6 +20,12 @@ struct EditPipelineSheet: View {
Text("Edit Pipeline")
.font(.headline)
.padding(.bottom)

if pipeline.feed.type == .cctray {
CCTrayAuthView(useBasicAuth: $useBasicAuth, credential: $credential)
.padding(.bottom)
}

Form {
TextField("Name:", text: $name)
.accessibilityIdentifier("Name field")
Expand Down

0 comments on commit 150748c

Please sign in to comment.