@@ -115,10 +115,10 @@ func (m *Model) Update(msg tea.Msg) tea.Cmd {
115115 return messagepopup .Open (messagepopup .Info , "You selected: " + r .String (), nil )
116116 },
117117 tablecontroll .New (tablecontroll.Columns [client.Account ]{
118- {Title : "Username" , View : func (r client.Account ) string { return r .Username }},
119- {Title : "Host" , View : func (r client.Account ) string { return r .Host }},
120- {Title : "Port" , View : func (r client.Account ) string { return fmt .Sprint (r .Port ) }},
121- {Title : "Deploy Method" , View : func (r client.Account ) string { return r .DeployMethod }},
118+ {Title : func () string { return "Username" } , View : func (r client.Account ) string { return r .Username }},
119+ {Title : func () string { return "Host" } , View : func (r client.Account ) string { return r .Host }},
120+ {Title : func () string { return "Port" } , View : func (r client.Account ) string { return fmt .Sprint (r .Port ) }},
121+ {Title : func () string { return "Deploy Method" } , View : func (r client.Account ) string { return r .DeployMethod }},
122122 }),
123123 )
124124
@@ -132,10 +132,10 @@ func (m *Model) Update(msg tea.Msg) tea.Cmd {
132132 return messagepopup .Open (messagepopup .Info , "You selected: " + r .String (), nil )
133133 },
134134 tablecontroll .New (tablecontroll.Columns [client.Account ]{
135- {Title : "Username" , View : func (r client.Account ) string { return r .Username }},
136- {Title : "Host" , View : func (r client.Account ) string { return r .Host }},
137- {Title : "Port" , View : func (r client.Account ) string { return fmt .Sprint (r .Port ) }},
138- {Title : "Deploy Method" , View : func (r client.Account ) string { return r .DeployMethod }},
135+ {Title : func () string { return "Username" } , View : func (r client.Account ) string { return r .Username }},
136+ {Title : func () string { return "Host" } , View : func (r client.Account ) string { return r .Host }},
137+ {Title : func () string { return "Port" } , View : func (r client.Account ) string { return fmt .Sprint (r .Port ) }},
138+ {Title : func () string { return "Deploy Method" } , View : func (r client.Account ) string { return r .DeployMethod }},
139139 }),
140140 selectpopup .WithFilter (func (filter string , records []client.Account ) []client.Account {
141141 return slicest .Filter (records , func (record client.Account ) bool {
0 commit comments