Skip to content

Commit

Permalink
added right click to open in a new tab in home btn
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Aug 4, 2024
1 parent b06b0f4 commit 32823af
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions frontend/src/components/common/Navigation/HomeBtn.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
<script setup lang="ts">
import { ref } from "vue";
import RommIso from "@/components/common/RommIso.vue";
import storeNavigation from "@/stores/navigation";
const homeUrl = ref(`${location.protocol}//${location.host}`);
const navigationStore = storeNavigation();
</script>
<template>
<v-hover v-slot="{ isHovering, props: hoverProps }">
<romm-iso
@click="navigationStore.goHome"
v-bind="hoverProps"
class="pointer"
:class="{ 'border-romm-accent-1': isHovering }"
:size="35"
/>
</v-hover>
<a @click.prevent style="text-decoration: none; color: inherit" :href="homeUrl">
<v-hover v-slot="{ isHovering, props: hoverProps }">
<romm-iso
@click="navigationStore.goHome"
v-bind="hoverProps"
class="pointer"
:class="{ 'border-romm-accent-1': isHovering }"
:size="35"
/>
</v-hover>
</a>
</template>

0 comments on commit 32823af

Please sign in to comment.