From a3308fcac8bfcbcdc2c8ea3d4b5a39b3ae6fc611 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 1 Sep 2024 09:57:56 -0400 Subject: [PATCH] remove open in new tab code --- .../src/components/common/Game/AdminMenu.vue | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/frontend/src/components/common/Game/AdminMenu.vue b/frontend/src/components/common/Game/AdminMenu.vue index 634f994bd..d41c54e71 100644 --- a/frontend/src/components/common/Game/AdminMenu.vue +++ b/frontend/src/components/common/Game/AdminMenu.vue @@ -11,7 +11,6 @@ import type { Events } from "@/types/emitter"; import type { Emitter } from "mitt"; import { storeToRefs } from "pinia"; import { inject } from "vue"; -import { useRouter } from "vue-router"; // Props const props = defineProps<{ rom: SimpleRom }>(); @@ -21,16 +20,6 @@ const auth = storeAuth(); const collectionsStore = storeCollections(); const romsStore = storeRoms(); const { favCollection } = storeToRefs(collectionsStore); -const router = useRouter(); - -// Functions -function openInNewTab() { - const link = router.resolve({ - name: "rom", - params: { rom: props.rom.id }, - }); - window.open(link.href, "_blank"); -} async function switchFromFavourites() { if (!favCollection.value) { @@ -99,12 +88,6 @@ async function switchFromFavourites() {