mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
Merge pull request #2962 from rommapp/romm-2956
[ROMM-2956] Fix refresh on card edit
This commit is contained in:
@@ -137,7 +137,7 @@ const tiltCardRef = useTemplateRef<TiltHTMLElement>("tilt-card-ref");
|
||||
|
||||
// Determine the correct route for this collection type
|
||||
const collectionRoute = computed(() => {
|
||||
if (!props.withLink || !props.collection) return {};
|
||||
if (!props.withLink || !props.collection) return null;
|
||||
|
||||
// Check if it's a smart collection (has filter_criteria property)
|
||||
if ("filter_criteria" in props.collection) {
|
||||
@@ -184,9 +184,13 @@ onBeforeUnmount(() => {
|
||||
<template>
|
||||
<div ref="tilt-card-ref" data-tilt>
|
||||
<v-card
|
||||
v-bind="{
|
||||
to: collectionRoute,
|
||||
}"
|
||||
v-bind="
|
||||
collectionRoute
|
||||
? {
|
||||
to: collectionRoute,
|
||||
}
|
||||
: {}
|
||||
"
|
||||
:class="{
|
||||
'transform-scale': transformScale && !enable3DTilt,
|
||||
}"
|
||||
|
||||
Reference in New Issue
Block a user