From 4d4cf831e214c85da3d6e41ab3cd9dcb02f020db Mon Sep 17 00:00:00 2001 From: zurdi Date: Tue, 3 Dec 2024 23:33:36 +0000 Subject: [PATCH] improved file info display --- .../src/components/Details/Info/FileInfo.vue | 29 ++++++------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/Details/Info/FileInfo.vue b/frontend/src/components/Details/Info/FileInfo.vue index 18dac9539..ba426f6e8 100644 --- a/frontend/src/components/Details/Info/FileInfo.vue +++ b/frontend/src/components/Details/Info/FileInfo.vue @@ -14,6 +14,11 @@ const props = defineProps<{ rom: DetailedRom }>(); const downloadStore = storeDownload(); const auth = storeAuth(); const romUser = ref(props.rom.rom_user); +const romInfo = ref([ + { label: "SHA-1", value: props.rom.sha1_hash }, + { label: "MD5", value: props.rom.md5_hash }, + { label: "CRC", value: props.rom.crc_hash }, +]); // Functions function collectionsWithoutFavourites(collections: Collection[]) { @@ -111,33 +116,17 @@ watch( Info - + Size: {{ formatBytes(rom.file_size_bytes) }} {{ info.label }}: {{ info.value }} - SHA-1: {{ rom.sha1_hash }} - - - MD5: {{ rom.md5_hash }} - - - CRC: {{ rom.crc_hash }} -