From 88577979e7f6192a01ab1f954611c4c8734cf508 Mon Sep 17 00:00:00 2001 From: rowanxgamal Date: Tue, 20 Aug 2024 15:10:58 +0300 Subject: [PATCH] fix: no need for fetching in AppBar, more clarity in Admin.vue nextlaunch btn --- client/src/layouts/default/AppBar.vue | 5 +---- client/src/views/Admin.vue | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/client/src/layouts/default/AppBar.vue b/client/src/layouts/default/AppBar.vue index 379b6b8..6769345 100644 --- a/client/src/layouts/default/AppBar.vue +++ b/client/src/layouts/default/AppBar.vue @@ -116,7 +116,7 @@ export default { "/otp", "/newPassword", "/maintenance", - "/nextlaunch", + // "/nextlaunch", "/about" ]); const items = ref([ @@ -216,8 +216,6 @@ export default { }; const checkNextLaunch = () => { - userService.nextlaunch(); - userService.handleNextLaunch(); nextlaunch.value = localStorage.getItem("nextlaunch") == "true"; if (!nextlaunch.value) { router.push({ name: "NextLaunch" }); @@ -225,7 +223,6 @@ export default { }; const checkMaintenance = () => { - userService.maintenance(); maintenance.value = localStorage.getItem("maintenance") == "false"; if (!maintenance.value) { router.push({ name: "Maintenance" }); diff --git a/client/src/views/Admin.vue b/client/src/views/Admin.vue index 87d98f8..59f323c 100644 --- a/client/src/views/Admin.vue +++ b/client/src/views/Admin.vue @@ -168,10 +168,10 @@