Removed approve/deny buttons from the app list
This commit is contained in:
@@ -52,16 +52,6 @@ function formatExact(iso) {
|
||||
return isNaN(d) ? '' : exactFmt.format(d)
|
||||
}
|
||||
|
||||
async function handleApprove(id) {
|
||||
await approveApplication(id);
|
||||
appList.value = await getAllApplications();
|
||||
}
|
||||
|
||||
async function handleDeny(id) {
|
||||
await denyApplication(id);
|
||||
appList.value = await getAllApplications();
|
||||
}
|
||||
|
||||
const router = useRouter();
|
||||
function openApplication(id) {
|
||||
router.push(`/administration/applications/${id}`)
|
||||
@@ -102,7 +92,7 @@ onMounted(async () => {
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>User</TableHead>
|
||||
<TableHead>Date Submitted</TableHead>
|
||||
<TableHead class="text-right">Date Submitted</TableHead>
|
||||
<TableHead class="text-right">Status</TableHead>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
@@ -117,20 +107,10 @@ onMounted(async () => {
|
||||
<TableCell class="font-medium">
|
||||
<MemberCard :memberId="app.member_id"></MemberCard>
|
||||
</TableCell>
|
||||
<TableCell :title="formatExact(app.submitted_at)">
|
||||
<TableCell class="text-right" :title="formatExact(app.submitted_at)">
|
||||
{{ formatAgo(app.submitted_at) }}
|
||||
</TableCell>
|
||||
|
||||
<TableCell v-if="app.app_status === ApplicationStatus.Pending"
|
||||
class="inline-flex items-end gap-2">
|
||||
<Button variant="success" @click.stop="handleApprove(app.id)">
|
||||
<CheckIcon />
|
||||
</Button>
|
||||
<Button variant="destructive" @click.stop="handleDeny(app.id)">
|
||||
<XIcon />
|
||||
</Button>
|
||||
</TableCell>
|
||||
|
||||
<TableCell class="text-right font-semibold" :class="[
|
||||
app.app_status === ApplicationStatus.Pending && 'text-yellow-500',
|
||||
app.app_status === ApplicationStatus.Accepted && 'text-green-500',
|
||||
|
||||
Reference in New Issue
Block a user