mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-01 15:41:18 +00:00
Merge pull request #3278 from 315944211/feat/show-account-id-in-admin-list
feat: show account id in account list
This commit is contained in:
3 files changed
+7
No files matched your search
@@ -210,6 +210,9 @@
|
||||
<template #cell-select="{ row }">
|
||||
<input type="checkbox" :checked="isSelected(row.id)" @change="toggleSel(row.id)" class="rounded border-gray-300 text-primary-600 focus:ring-primary-500" />
|
||||
</template>
|
||||
<template #cell-id="{ value }">
|
||||
<span class="font-mono text-xs text-gray-500 dark:text-gray-400">#{{ value }}</span>
|
||||
</template>
|
||||
<template #cell-name="{ row, value }">
|
||||
<div class="flex flex-col">
|
||||
<span class="font-medium text-gray-900 dark:text-white">{{ value }}</span>
|
||||
@@ -526,6 +529,7 @@ type AccountSortState = {
|
||||
sort_order: AccountSortOrder
|
||||
}
|
||||
const ACCOUNT_SORTABLE_KEYS = new Set([
|
||||
'id',
|
||||
'name',
|
||||
'status',
|
||||
'schedulable',
|
||||
@@ -1136,6 +1140,7 @@ const allColumns = computed(() => {
|
||||
const c = [
|
||||
{ key: 'select', label: '', sortable: false },
|
||||
{ key: 'name', label: t('admin.accounts.columns.name'), sortable: true },
|
||||
{ key: 'id', label: t('admin.accounts.columns.id'), sortable: true },
|
||||
{ key: 'platform_type', label: t('admin.accounts.columns.platformType'), sortable: false },
|
||||
{ key: 'capacity', label: t('admin.accounts.columns.capacity'), sortable: false },
|
||||
{ key: 'status', label: t('admin.accounts.columns.status'), sortable: true },
|
||||
|
||||
Reference in new issue
Block a user