diff --git a/frontend/kubecloud/src/App.vue b/frontend/kubecloud/src/App.vue index 62b1c8a0..7c38ca72 100644 --- a/frontend/kubecloud/src/App.vue +++ b/frontend/kubecloud/src/App.vue @@ -57,6 +57,9 @@ onMounted(async () => { return } userStore.initializeAuth() + if(userStore.isLoggedIn){ + await userStore.loadUser() + } await notificationStore.loadNotifications() } catch (error) { console.error('Failed to initialize application:', error) diff --git a/frontend/kubecloud/src/components/AdminSidebar.vue b/frontend/kubecloud/src/components/AdminSidebar.vue index 37e2e1c0..dee5f3e8 100644 --- a/frontend/kubecloud/src/components/AdminSidebar.vue +++ b/frontend/kubecloud/src/components/AdminSidebar.vue @@ -35,7 +35,7 @@ const adminNavItems = [ { key: 'vouchers', title: 'Vouchers', icon: 'mdi-ticket-percent' }, { key: 'system', title: 'System', icon: 'mdi-cog' }, { key: 'invoices', title: 'Invoices', icon: 'mdi-file-document-outline' }, - { key: 'payments', title: 'Payments', icon: 'mdi-clock-outline' }, + { key: 'transfers', title: 'Transfers', icon: 'mdi-swap-horizontal' }, { key: 'emails', title: 'Emails', icon: 'mdi-email-outline' }, ] @@ -140,18 +140,18 @@ const adminNavItems = [ .admin-sidebar-card { padding: 1rem; } - + .sidebar-header { margin-bottom: 1rem; padding-bottom: 0.75rem; } - + .sidebar-title { font-size: var(--font-size-base, 1rem); } - + .sidebar-subtitle { font-size: var(--font-size-xs, 0.75rem); } } - \ No newline at end of file + diff --git a/frontend/kubecloud/src/components/AdminUsersTable.vue b/frontend/kubecloud/src/components/AdminUsersTable.vue index 314d59c4..adc4083a 100644 --- a/frontend/kubecloud/src/components/AdminUsersTable.vue +++ b/frontend/kubecloud/src/components/AdminUsersTable.vue @@ -20,29 +20,40 @@ { title: 'ID', key: 'id', width: '80px' }, { title: 'Name', key: 'username' }, { title: 'Email', key: 'email' }, - { title: 'Balance', key: 'balance' }, + { title: 'Balance (USD)', key: 'balance_in_usd' }, + { title: 'Balance (TFT)', key: 'balance_in_tft' }, + { title: 'Admin', key: 'admin' }, { title: 'Actions', key: 'actions', sortable: false, width: '160px' } ]" :items="users" :items-per-page="pageSize" :page="currentPage" + :sort-by="[{ key: 'id', order: 'asc' }]" @update:page="$emit('update:currentPage', $event)" class="admin-table" density="comfortable" > -