Apply same style as other table views to ApiToken list

This commit is contained in:
Johannes Zellner
2025-02-11 21:02:57 +01:00
parent daeaa800d8
commit 08b2f6f998

View File

@@ -148,7 +148,7 @@ onMounted(async () => {
<p v-html="$t('profile.apiTokens.description', { apiDocsLink: 'https://docs.cloudron.io/api.html' })"></p>
<br/>
<TableView :columns="columns" :model="apiTokens" :hover="false">
<TableView :columns="columns" :model="apiTokens">
<template #lastUsedTime="slotProps">
<span v-if="slotProps.lastUsedTime">{{ prettyLongDate(slotProps.lastUsedTime) }}</span>
<span v-else>{{ $t('profile.apiTokens.neverUsed') }}</span>
@@ -159,7 +159,7 @@ onMounted(async () => {
</template>
<template #actions="slotProps">
<div class="table-actions">
<Button small outline tool danger @click="onRevokeToken(slotProps)" v-tooltip="$t('profile.apiTokens.revokeTokenTooltip')" icon="far fa-trash-alt" />
<Button small tool danger @click="onRevokeToken(slotProps)" v-tooltip="$t('profile.apiTokens.revokeTokenTooltip')" icon="far fa-trash-alt" />
</div>
</template>
</TableView>