added copy link to applications
This commit is contained in:
@@ -5,10 +5,11 @@ import { onMounted, ref } from 'vue';
|
||||
import { approveApplication, denyApplication, loadApplication, postApplication, postChatMessage, getMyApplication, postAdminChatMessage } from '@/api/application';
|
||||
import { useRoute } from 'vue-router';
|
||||
import Button from '@/components/ui/button/Button.vue';
|
||||
import { CheckIcon, XIcon } from 'lucide-vue-next';
|
||||
import { CheckIcon, Link, XIcon } from 'lucide-vue-next';
|
||||
import Unauthorized from './Unauthorized.vue';
|
||||
import { ApplicationData, ApplicationFull, ApplicationStatus, CommentRow } from '@shared/types/application';
|
||||
import Spinner from '@/components/ui/spinner/Spinner.vue';
|
||||
import { CopyLink } from '@/lib/copyLink';
|
||||
|
||||
const appData = ref<ApplicationData>(null);
|
||||
const appID = ref<number | null>(null);
|
||||
@@ -143,7 +144,10 @@ async function handleDeny(id) {
|
||||
<div v-if="!newApp" class="flex flex-row justify-between items-center py-2 mb-8">
|
||||
<!-- Application header -->
|
||||
<div>
|
||||
<div class="flex gap-4 items-center">
|
||||
<h3 class="scroll-m-20 text-2xl font-semibold tracking-tight">{{ member_name }}</h3>
|
||||
<Button variant="ghost" size="icon" @click="CopyLink()"><Link class="size-5"/></Button>
|
||||
</div>
|
||||
<p class="text-muted-foreground">Submitted: {{ submitDate?.toLocaleString("en-US", {
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
|
||||
@@ -13,9 +13,10 @@ import {
|
||||
import Button from '@/components/ui/button/Button.vue';
|
||||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { CheckIcon, XIcon } from 'lucide-vue-next';
|
||||
import { CheckIcon, Link, XIcon } from 'lucide-vue-next';
|
||||
import Application from './Application.vue';
|
||||
import MemberCard from '@/components/members/MemberCard.vue';
|
||||
import { CopyLink } from '@/lib/copyLink';
|
||||
|
||||
const appList = ref([]);
|
||||
const now = Date.now();
|
||||
@@ -127,9 +128,11 @@ onMounted(async () => {
|
||||
<div v-if="openPanel" class="pl-9 border-l w-3/5" :key="$route.params.id">
|
||||
<div class="mb-5 flex justify-between">
|
||||
<p class="scroll-m-20 text-2xl font-semibold tracking-tight"> Application</p>
|
||||
<button @click="closeApplication()" class="cursor-pointer">
|
||||
<XIcon></XIcon>
|
||||
</button>
|
||||
<div class="flex items-center gap-2">
|
||||
<Button @click="closeApplication()" variant="ghost" size="icon">
|
||||
<XIcon class="size-6"></XIcon>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overflow-y-auto max-h-[80vh] h-full mt-5 scrollbar-themed">
|
||||
<Application :mode="'view-recruiter'"></Application>
|
||||
|
||||
Reference in New Issue
Block a user