Skip to content

Commit

Permalink
Merge pull request #1417 from rommapp/default-grid-view-false
Browse files Browse the repository at this point in the history
Default grid view for recently and continue playing to false
  • Loading branch information
gantoine authored Jan 5, 2025
2 parents 598a7ae + 9e7e641 commit 421d9ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Home/ContinuePlaying.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { continuePlayingRoms } = storeToRefs(romsStore);
const gridContinuePlayingRoms = isNull(
localStorage.getItem("settings.gridContinuePlayingRoms"),
)
? true
? false
: localStorage.getItem("settings.gridContinuePlayingRoms") === "true";
</script>
<template>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Home/RecentAdded.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { t } = useI18n();
const romsStore = storeRoms();
const { recentRoms } = storeToRefs(romsStore);
const gridRecentRoms = isNull(localStorage.getItem("settings.gridRecentRoms"))
? true
? false
: localStorage.getItem("settings.gridRecentRoms") === "true";
</script>
<template>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Settings/UserInterface/Interface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const showRecentRomsRef = ref(
);
const storedGridRecentRoms = localStorage.getItem("settings.gridRecentRoms");
const gridRecentRomsRef = ref(
isNull(storedGridRecentRoms) ? true : storedGridRecentRoms === "true",
isNull(storedGridRecentRoms) ? false : storedGridRecentRoms === "true",
);
const storedShowContinuePlaying = localStorage.getItem(
"settings.showContinuePlaying",
Expand All @@ -29,7 +29,7 @@ const storedGridContinuePlaying = localStorage.getItem(
);
const gridContinuePlayingRef = ref(
isNull(storedGridContinuePlaying)
? true
? false
: storedGridContinuePlaying === "true",
);
const storedShowPlatforms = localStorage.getItem("settings.showPlatforms");
Expand Down

0 comments on commit 421d9ab

Please sign in to comment.