tokens: remove expiresAt and add lastUsed
This commit is contained in:
@@ -430,7 +430,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 45%">{{ 'profile.apiTokens.name' | tr }}</th>
|
||||
<th style="width: 45%">{{ 'profile.apiTokens.expiresAt' | tr }}</th>
|
||||
<th style="width: 45%">{{ 'profile.apiTokens.lastUsed' | tr }}</th>
|
||||
<th style="width: 10%" class="text-right">{{ 'main.actions' | tr }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -443,7 +443,8 @@
|
||||
{{ token.name || 'unnamed' }}
|
||||
</td>
|
||||
<td class="elide-table-cell" style="text-overflow: ellipsis; white-space: nowrap;">
|
||||
{{ token.expires | prettyShortDate }}
|
||||
<span ng-show="token.lastUsedTime">{{ token.lastUsedTime | prettyLongDate }}</span>
|
||||
<span ng-show="!token.lastUsedTime">{{ 'profile.apiTokens.neverUsed' | tr }}</span>
|
||||
</td>
|
||||
<td class="text-right no-wrap" style="vertical-align: bottom">
|
||||
<button class="btn btn-xs btn-danger" ng-click="tokens.revokeToken(token)" uib-tooltip="{{ 'profile.apiTokens.revokeTokenTooltip' | tr }}"><i class="far fa-trash-alt"></i></button>
|
||||
|
||||
Reference in New Issue
Block a user