Clarify start, locked, and recycle flows
This commit is contained in:
@@ -426,9 +426,19 @@ func (u *ui) apiAuditRow(gtx layout.Context, click *widget.Clickable, idx int, e
|
||||
func (u *ui) apiTokenListPanel(gtx layout.Context) layout.Dimensions {
|
||||
tokens := u.apiTokens()
|
||||
return layout.Flex{Axis: layout.Vertical}.Layout(gtx,
|
||||
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
|
||||
lbl := material.Label(u.theme, unit.Sp(12), "Grant scoped gRPC access to external tools. Search matches token name, client, or expiration.")
|
||||
lbl.Color = mutedColor
|
||||
return lbl.Layout(gtx)
|
||||
}),
|
||||
layout.Rigid(layout.Spacer{Height: unit.Dp(8)}.Layout),
|
||||
layout.Flexed(1, func(gtx layout.Context) layout.Dimensions {
|
||||
if len(tokens) == 0 {
|
||||
lbl := material.Label(u.theme, unit.Sp(14), "No API tokens match the current filter.")
|
||||
text := "No API tokens yet."
|
||||
if strings.TrimSpace(u.search.Text()) != "" {
|
||||
text = "No API tokens match the current filter."
|
||||
}
|
||||
lbl := material.Label(u.theme, unit.Sp(14), text)
|
||||
lbl.Color = mutedColor
|
||||
return lbl.Layout(gtx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user