From ef9c6e7827e31f5bbc016e60a5d54e0d47b67954 Mon Sep 17 00:00:00 2001
From: Daniel Hawton
-
+
-
@@ -22,25 +23,54 @@
class="hover:dark:bg-zinc-800 hover:bg-zinc-300 hover:cursor-pointer"
@click="goToUser(c.cid)"
>
- Name
-
CID (Rating){{ months[4] }}
- {{ months[3] }}
- {{ months[2] }}
- {{ months[1] }}
- {{ months[0] }}
+ Name
+
CID (Rating){{ months[4] }}
+ {{ months[3] }}
+ {{ months[2] }}
+ {{ months[1] }}
+ {{ months[0] }}
+ Controller Total
+
{{ c.first_name }} {{ c.last_name }} ({{ c.operating_initials || "none" }})
-
{{ c.cid }} ({{ c.rating }})
+
{{ getHours(minus4.find((c2) => c2.cid === c.cid)) }}
+
-
+
{{ getHours(minus3.find((c2) => c2.cid === c.cid)) }}
+
-
+
{{ getHours(minus2.find((c2) => c2.cid === c.cid)) }}
+
-
+
{{ getHours(minus1.find((c1) => c1.cid === c.cid)) }}
+
+
+
+ {{ getHours(c) }}
+
+
+
+ {{
+ getSum([
+ minus4.find((c2) => c2.cid === c.cid),
+ minus3.find((c2) => c2.cid === c.cid),
+ minus2.find((c2) => c2.cid === c.cid),
+ minus1.find((c2) => c2.cid === c.cid),
+ c,
+ ])
+ }}
- {{ getHours(c) }}
+
+
+
+
Total Hours
+ {{ getSum(minus4) }}
+ {{ getSum(minus3) }}
+ {{ getSum(minus2) }}
+ {{ getSum(minus1) }}
+ {{ getSum(curMonth) }}
+
+
+ You do not meet the minimum rating requirement of {{ fac.minVisitorRating }} to apply for visiting status. +
+Submitting application...
The error we got from the backend was: {{ error }}
If you believe this is an error, please contact the facility staff for guidance.
@@ -108,6 +116,7 @@ import { onMounted, Ref, ref } from "vue"; import Alert from "@/components/Alert.vue"; import { AxiosResponse } from "axios"; import fac from "@/facility"; +import { isRatingBelow } from "@/utils/helpers"; import { primaryHover } from "@/utils/colors"; import Spinner from "@/components/Spinner.vue"; import useUserStore from "@/stores/users"; diff --git a/src/views/partials/events/Positions.vue b/src/views/partials/events/Positions.vue index a065882..ee8088a 100644 --- a/src/views/partials/events/Positions.vue +++ b/src/views/partials/events/Positions.vue @@ -355,7 +355,7 @@ const toggleAssignDropdown = (id: number): void => { const enroutePositions = computed(() => { if (props.positions) { - return props.positions.filter((pos) => pos.position.includes("_CTR")); + return props.positions.filter((pos) => pos.position.includes("_CTR") || pos.position.includes("_FSS")); } return []; }); diff --git a/src/views/partials/roster/ControllerActions.vue b/src/views/partials/roster/ControllerActions.vue index ff5bd5a..a56d241 100644 --- a/src/views/partials/roster/ControllerActions.vue +++ b/src/views/partials/roster/ControllerActions.vue @@ -225,6 +225,10 @@ const focusRemoval = (): void => { const addVisitor = async (): Promise