Show uid if name is empty

This commit is contained in:
Stanislav Romanov 2022-09-19 13:40:16 +03:00
parent 4191311ecf
commit 276bbaf8a3
2 changed files with 4 additions and 3 deletions

View file

@ -8,11 +8,12 @@
</LinkTo>
<SimpleTable @data={{@model.results}} class='w-full' as |Column data|>
<Column @prop='name'>
<Column @name="Name or uid">
<LinkTo @route='admin.keys.key' @model={{data.uid}}>
{{data.name}}
{{nu-co data.name data.uid}}
</LinkTo>
</Column>
<Column @prop='actions' />
<Column @prop='indexes' />
<Column @prop='expiresAt' />
</SimpleTable>

View file

@ -1,4 +1,4 @@
<Headers::H1 @title={{@model.name}} />
<Headers::H1 @title={{nu-co @model.name @model.uid}} />
<Tabs>
<Tab @route="admin.keys.key.index" @text="View" @model={{@model}} />