File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ struct AddGitHubPipelineSheet: View {
109109 LabeledContent ( " Branch: " ) {
110110 ComboBox ( items: branchList. items. map ( { $0. name } ) , text: $branch. input)
111111 . accessibilityIdentifier ( " Branch combo box " )
112- . disabled ( owner . text . isEmpty || repository . text . isEmpty || repository . text . starts ( with : " ( " ) )
112+ . disabled ( !workflowList . selected . isValid )
113113 . onReceive ( branch. $text) { t in
114114 builder. branch = t
115115 }
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ class GitHubPipelineBuilder: ObservableObject {
2626
2727 var canMakePipeline : Bool {
2828 guard !name. isEmpty else { return false }
29- guard let owner else { return false }
30- guard let repository else { return false }
29+ guard owner? . isEmpty == false else { return false }
30+ guard repository? . isEmpty == false else { return false }
3131 guard let workflow, workflow. isValid else { return false }
32- guard let branch else { return false }
32+ guard branch != nil else { return false }
3333 return true
3434 }
3535
You can’t perform that action at this time.
0 commit comments