diff --git a/resources/js/Shared/MainMenu.vue b/resources/js/Shared/MainMenu.vue
index a039f02c..27249cbf 100644
--- a/resources/js/Shared/MainMenu.vue
+++ b/resources/js/Shared/MainMenu.vue
@@ -11,25 +11,26 @@ import {
TransitionRoot,
} from '@headlessui/vue'
import {
- HomeIcon,
- RectangleStackIcon,
+ ArrowPathIcon,
+ AdjustmentsVerticalIcon,
+ BanknotesIcon,
Bars3CenterLeftIcon,
- UserGroupIcon,
- XMarkIcon,
- SunIcon,
- ClipboardDocumentListIcon,
- StarIcon,
+ BeakerIcon,
+ CakeIcon,
CalendarIcon,
+ ClipboardDocumentListIcon,
+ ComputerDesktopIcon,
+ DocumentDuplicateIcon,
DocumentTextIcon,
- AdjustmentsVerticalIcon,
+ GiftIcon,
+ HomeIcon,
KeyIcon,
RectangleGroupIcon,
- BeakerIcon,
- GiftIcon,
- BanknotesIcon,
- ComputerDesktopIcon,
- DocumentDuplicateIcon,
- CakeIcon,
+ RectangleStackIcon,
+ StarIcon,
+ SunIcon,
+ UserGroupIcon,
+ XMarkIcon,
} from '@heroicons/vue/24/outline'
import { CheckIcon, ChevronDownIcon } from '@heroicons/vue/24/solid'
@@ -37,6 +38,8 @@ const props = defineProps({
auth: Object,
years: Object,
vacationRequestsCount: Number,
+ showRefreshButton: Boolean,
+ lastUpdate: String,
})
const sidebarOpen = ref(false)
@@ -167,12 +170,21 @@ const miscNavigation = computed(() => [
can: !props.auth.can.manageEquipment,
},
].filter(item => item.can))
+
+const refreshablePages = ['Dashboard', 'Calendar', 'VacationRequest/IndexForApprovers']
+const refreshableHrefs = ['/vacation/requests', '/calendar']
+
+const reloadPage = () => {
+ window.location.reload()
+}
+
+const emit = defineEmits(['open'])