mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
[ROMM-919] Use core icon when showing version
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import storeConfig from "@/stores/config";
|
||||
|
||||
const props = defineProps<{ slug: string }>();
|
||||
const platformIconUrl = ref(
|
||||
`/assets/platforms/${props.slug.toLowerCase()}.ico`
|
||||
);
|
||||
const configStore = storeConfig();
|
||||
const slug = configStore.value.PLATFORMS_VERSIONS[props.slug] ?? props.slug;
|
||||
const platformIconUrl = ref(`/assets/platforms/${slug.toLowerCase()}.ico`);
|
||||
|
||||
function onImageError() {
|
||||
platformIconUrl.value = "/assets/platforms/default.ico";
|
||||
|
||||
Reference in New Issue
Block a user