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 {
109
109
LabeledContent ( " Branch: " ) {
110
110
ComboBox ( items: branchList. items. map ( { $0. name } ) , text: $branch. input)
111
111
. accessibilityIdentifier ( " Branch combo box " )
112
- . disabled ( owner . text . isEmpty || repository . text . isEmpty || repository . text . starts ( with : " ( " ) )
112
+ . disabled ( !workflowList . selected . isValid )
113
113
. onReceive ( branch. $text) { t in
114
114
builder. branch = t
115
115
}
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ class GitHubPipelineBuilder: ObservableObject {
26
26
27
27
var canMakePipeline : Bool {
28
28
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 }
31
31
guard let workflow, workflow. isValid else { return false }
32
- guard let branch else { return false }
32
+ guard branch != nil else { return false }
33
33
return true
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments