Skip to content

Commit

Permalink
fixed detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Jul 3, 2024
1 parent 040fd83 commit e539083
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions frontend/src/views/GameDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { Events } from "@/types/emitter";
import type { Emitter } from "mitt";
import { storeToRefs } from "pinia";
import { inject, onBeforeMount, ref, watch } from "vue";
import { useRoute } from "vue-router";
import { onBeforeRouteLeave, useRoute } from "vue-router";
import { useDisplay } from "vuetify";
// Props
Expand Down Expand Up @@ -82,6 +82,10 @@ onBeforeMount(async () => {
downloadStore.clear();
});
onBeforeRouteLeave(() => {
currentRom.value = null;
});
watch(
() => route.fullPath,
async () => {
Expand Down Expand Up @@ -180,8 +184,10 @@ watch(
<v-window disabled v-model="tab" class="py-2">
<v-window-item value="details">
<v-row no-gutters :class="{ 'mx-2': mdAndUp }">
<file-info :rom="currentRom" :platform="platform" />
<game-info :rom="currentRom" />
<v-col>
<file-info :rom="currentRom" :platform="platform" />
<game-info :rom="currentRom" />
</v-col>
</v-row>
</v-window-item>
<v-window-item value="saves">
Expand Down

0 comments on commit e539083

Please sign in to comment.