Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/auth/domain/UserLabel

Cockpit client (features), v0.8. Source: ui/client/features/auth/domain/UserLabel.ts.

Functions#

displayName()#

displayName(user): string

Defined in: ui/client/features/auth/domain/UserLabel.ts:8

Show the person's name when GitHub gave us one, otherwise their login.

Parameters#

user

AuthUser | null

Returns#

string


initial()#

initial(user): string

Defined in: ui/client/features/auth/domain/UserLabel.ts:16

Fallback avatar when GitHub gave us no picture (always the case for the test login): the first character of the login, uppercased.

Parameters#

user

AuthUser | null

Returns#

string