setup for rank change page

This commit is contained in:
2025-09-05 19:27:15 -04:00
parent c1e52ec4c0
commit 7e3c8cbc70
19 changed files with 452 additions and 23 deletions

View File

@@ -12,6 +12,7 @@ import {
import Button from '@/components/ui/button/Button.vue';
import { onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import { CheckIcon, XIcon } from 'lucide-vue-next';
const appList = ref([]);
const now = Date.now();
@@ -86,8 +87,8 @@ onMounted(async () => {
{{ formatAgo(app.submitted_at) }}
</TableCell>
<TableCell v-if="app.app_status === Status.Pending" class="inline-flex items-end gap-2">
<Button variant="success" @click.stop="() => { console.log('hello') }">Accept</Button>
<Button variant="destructive" @click.stop="() => { handleDeny(app.id) }">Deny</Button>
<Button variant="success" @click.stop="() => { handleApprove(app.id) }"><CheckIcon></CheckIcon></Button>
<Button variant="destructive" @click.stop="() => { handleDeny(app.id) }"><XIcon></XIcon></Button>
</TableCell>
<TableCell class="text-right font-semibold" :class="[