From af723c99c9e8fbeef457f61476d81cb8bb21766f Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Tue, 30 Dec 2025 14:35:27 -0500 Subject: [PATCH] improved visuals for notfound application state --- ui/src/pages/Application.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/Application.vue b/ui/src/pages/Application.vue index 428d52c..fe3de0b 100644 --- a/ui/src/pages/Application.vue +++ b/ui/src/pages/Application.vue @@ -20,6 +20,7 @@ const decisionDate = ref(null); const submitDate = ref(null); const loading = ref(true); const member_name = ref(); +const notFound = ref(false); const props = defineProps<{ mode?: "create" | "view-self" | "view-recruiter" | "view-self-id" @@ -29,6 +30,11 @@ const finalMode = ref<"create" | "view-self" | "view-recruiter" | "view-self-id" function loadData(raw: ApplicationFull) { + if (!raw) { + notFound.value = true; + return; + } + const data = raw.application; appID.value = data.id; @@ -129,6 +135,10 @@ async function handleDeny(id) {
You do not have permission to view this application.
+
+ Looks like you dont have an application, reach out to the administration team if you believe this is an + error. +
@@ -183,6 +193,6 @@ async function handleDeny(id) {
- +
\ No newline at end of file