api tokens: move last used as last column

This commit is contained in:
Girish Ramakrishnan
2026-01-13 16:29:25 +01:00
parent 215a6faae9
commit 2bf9b66af7
2 changed files with 20 additions and 20 deletions
+8 -8
View File
@@ -28,14 +28,6 @@ const columns = {
label: t('profile.apiTokens.name'),
sort: true
},
lastUsedTime: {
label: t('profile.apiTokens.lastUsed'),
sort(a, b) {
if (!a) return 1;
if (!b) return -1;
return moment(a).isBefore(b) ? 1 : -1;
}
},
scope: {
label: t('profile.apiTokens.scope'),
hideMobile: true,
@@ -45,6 +37,14 @@ const columns = {
hideMobile: true,
sort: true
},
lastUsedTime: {
label: t('profile.apiTokens.lastUsed'),
sort(a, b) {
if (!a) return 1;
if (!b) return -1;
return moment(a).isBefore(b) ? 1 : -1;
}
},
actions: {},
};