Owen Diffey 2 rokov pred
rodič
commit
a313706f73

+ 0 - 1
frontend/src/components/LongJobs.vue

@@ -6,7 +6,6 @@ import FloatingBox from "@/components/FloatingBox.vue";
 
 const store = useStore();
 
-const minimise = ref(true);
 const body = ref(document.body);
 
 const activeJobs = computed(() => store.state.longJobs.activeJobs);

+ 0 - 6
frontend/src/components/PunishmentItem.vue

@@ -1,19 +1,13 @@
 <script setup lang="ts">
-import { useStore } from "vuex";
 import { ref, watch } from "vue";
 import { format, formatDistance, parseISO } from "date-fns";
 
-const store = useStore();
-
 const props = defineProps({
 	punishment: { type: Object, default: () => {} }
 });
 
 const active = ref(false);
 
-const closeModal = payload =>
-	store.dispatch("modalVisibility/closeModal", payload);
-
 watch(props.punishment, punishment => {
 	active.value =
 		punishment.active &&

+ 0 - 3
frontend/src/components/modals/WhatIsNew.vue

@@ -36,9 +36,6 @@ onBeforeUnmount(() => {
 	store.unregisterModule(["modals", "whatIsNew", props.modalUuid]);
 });
 
-const openModal = payload =>
-	store.dispatch("modalVisibility/openModal", payload);
-
 const { sanitize } = dompurify;
 </script>