From 98b5a25c50f60f16a135095e4b0d812a8d8c989d Mon Sep 17 00:00:00 2001 From: zurdi Date: Tue, 1 Aug 2023 10:08:40 +0200 Subject: [PATCH 1/3] platform slug cast to lowercase to show icon --- frontend/src/components/Platform/PlatformCard.vue | 2 +- frontend/src/components/Platform/PlatformListItem.vue | 2 +- frontend/src/views/library/Scan.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Platform/PlatformCard.vue b/frontend/src/components/Platform/PlatformCard.vue index 19afae708..47f561d47 100644 --- a/frontend/src/components/Platform/PlatformCard.vue +++ b/frontend/src/components/Platform/PlatformCard.vue @@ -2,7 +2,7 @@ import { ref } from "vue"; const props = defineProps(["platform"]); -const platformIconUrl = ref(`/assets/platforms/${props.platform.slug}.ico`); +const platformIconUrl = ref(`/assets/platforms/${props.platform.slug.toLowerCase()}.ico`); function onImageError() { platformIconUrl.value = "/assets/platforms/default.ico"; diff --git a/frontend/src/components/Platform/PlatformListItem.vue b/frontend/src/components/Platform/PlatformListItem.vue index 1981910ef..3f4e56935 100644 --- a/frontend/src/components/Platform/PlatformListItem.vue +++ b/frontend/src/components/Platform/PlatformListItem.vue @@ -15,7 +15,7 @@ const props = defineProps(["platform", "rail"]); }}