Skip to content

Commit

Permalink
fixup! Enable and fix unused issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jshufro committed Apr 18, 2024
1 parent bc047f2 commit 8a1fb39
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions rocketpool-cli/commands/service/config/cfg-form.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ type parameterizedFormItem struct {
item tview.FormItem
}

/*
func registerEnableCheckbox(param *config.Parameter[bool], checkbox *tview.Checkbox, form *Form, items []*parameterizedFormItem) {
checkbox.SetChangedFunc(func(checked bool) {
param.Value = checked
if !checked {
form.Clear(true)
form.AddFormItem(checkbox)
} else {
for _, item := range items {
form.AddFormItem(item.item)
}
}
})
}
*/

// Create a list of form items based on a set of parameters
func createParameterizedFormItems(params []config.IParameter, descriptionBox *tview.TextView) []*parameterizedFormItem {
formItems := []*parameterizedFormItem{}
Expand Down

0 comments on commit 8a1fb39

Please sign in to comment.