diff --git a/frontend/src/components/Home/Collections.vue b/frontend/src/components/Home/Collections.vue index ac8319e69..897090d3d 100644 --- a/frontend/src/components/Home/Collections.vue +++ b/frontend/src/components/Home/Collections.vue @@ -14,6 +14,10 @@ const storedCollections = localStorage.getItem("settings.gridCollections"); const gridCollections = ref( isNull(storedCollections) ? false : storedCollections === "true", ); +const isHovering = ref(false); +const hoveringCollectionId = ref(); + +// Functions function toggleGridCollections() { gridCollections.value = !gridCollections.value; localStorage.setItem( @@ -21,6 +25,11 @@ function toggleGridCollections() { gridCollections.value.toString(), ); } + +function onHover(emitData: { isHovering: boolean; id: number }) { + isHovering.value = emitData.isHovering; + hoveringCollectionId.value = emitData.id; +}