File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/CodeEditSourceEditor/Find/PanelView Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,22 +125,22 @@ struct FindPanelView: View {
125
125
ControlGroup {
126
126
Button ( action: {
127
127
// TODO: Replace action
128
- } ) {
128
+ } , label : {
129
129
Text ( " Replace " )
130
130
. opacity ( viewModel. findText. isEmpty || viewModel. matchCount == 0 ? 0.33 : 1 )
131
131
. frame ( width: viewModel. findControlsWidth/ 2 - 12 - 0.5 )
132
- }
132
+ } )
133
133
// TODO: disable if there is not an active match
134
134
. disabled ( viewModel. findText. isEmpty || viewModel. matchCount == 0 )
135
135
Divider ( )
136
136
. overlay ( Color ( nsColor: . tertiaryLabelColor) )
137
137
Button ( action: {
138
138
// TODO: Replace all action
139
- } ) {
139
+ } , label : {
140
140
Text ( " All " )
141
141
. opacity ( viewModel. findText. isEmpty || viewModel. matchCount == 0 ? 0.33 : 1 )
142
142
. frame ( width: viewModel. findControlsWidth/ 2 - 12 - 0.5 )
143
- }
143
+ } )
144
144
. disabled ( viewModel. findText. isEmpty || viewModel. matchCount == 0 )
145
145
}
146
146
. controlGroupStyle ( PanelControlGroupStyle ( ) )
You can’t perform that action at this time.
0 commit comments