Skip to content

Commit ff22fdf

Browse files
fixed formatting
1 parent 43731d7 commit ff22fdf

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ui/tui/models/views/account/crud.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func NewCrud(c client.Client, rc router.Controll) *crud.Crud[recordT, recordCrea
179179
{Title: "Deploy Method", View: func(r recordT) string { return r.account.DeployMethod }},
180180
{Title: "Dirty", View: func(r recordT) string { return fmt.Sprint(r.isDirty) }},
181181
{Title: "Links (active/total)", View: func(r recordT) string {
182-
return fmt.Sprintf("%d/%d", r.activeLinkCount, r.totalLinkedPublicKeyCount)
182+
return fmt.Sprintf("%d/%d", r.activeLinkCount, r.totalLinkCount)
183183
}},
184184
{Title: "Public Keys (active/total)", View: func(r recordT) string {
185185
return fmt.Sprintf("%d/%d", r.activeLinkedPublicKeyCount, r.totalLinkedPublicKeyCount)

ui/tui/models/views/linkaccount/crud.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func NewCrud(c client.Client, rc router.Controll, account client.Account) *crud.
140140

141141
table.NewBubblesTableRenderer(table.Columns[recordT]{
142142
{Title: "Tag Matcher", View: func(r recordT) string { return r.link.TagMatcher }},
143-
{Title: "Expires At", View: func(r recordT) string { return fmt.Sprint(r.link.ExpiresAt) }},
143+
{Title: "Expires At", View: func(r recordT) string { return util.StringifyTime(r.link.ExpiresAt) }},
144144
{Title: "Account", View: func(r recordT) string { return account.String() }},
145145
{Title: "Public Keys", View: func(r recordT) string { return fmt.Sprint(r.linkedPublicKeyCount) }},
146146
}),

ui/tui/models/views/linkpublickey/crud.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func NewCrud(c client.Client, rc router.Controll, publicKey client.PublicKey) *c
173173

174174
table.NewBubblesTableRenderer(table.Columns[recordT]{
175175
{Title: "Tag Matcher", View: func(r recordT) string { return r.link.TagMatcher }},
176-
{Title: "Expires At", View: func(r recordT) string { return fmt.Sprint(r.link.ExpiresAt) }},
176+
{Title: "Expires At", View: func(r recordT) string { return util.StringifyTime(r.link.ExpiresAt) }},
177177
{Title: "Account", View: func(r recordT) string { return r.account.String() }},
178178
{Title: "Public Keys", View: func(r recordT) string { return fmt.Sprint(r.linkedPublicKeyCount) }},
179179
}),

0 commit comments

Comments
 (0)