diff --git a/src/pages/Admin/ItemsView.vue b/src/pages/Admin/ItemsView.vue index 8fedd306..e43ebc0b 100644 --- a/src/pages/Admin/ItemsView.vue +++ b/src/pages/Admin/ItemsView.vue @@ -22,8 +22,8 @@ const query = `SELECT i.id, i.longName, i.size, i.category, LEFT JOIN image im ON im.collectionFk = 'catalog' AND im.name = i.image - WHERE i.longName LIKE CONCAT('%', #search, '%') - OR i.id = #search + WHERE (i.longName LIKE CONCAT('%', #search, '%') + OR i.id = #search) AND i.isActive = 1 ORDER BY i.longName LIMIT 50`; const onSearch = data => (items.value = data || []); diff --git a/src/pages/Cms/HomeView.vue b/src/pages/Cms/HomeView.vue index 8bc5e166..a9931ca9 100644 --- a/src/pages/Cms/HomeView.vue +++ b/src/pages/Cms/HomeView.vue @@ -1,6 +1,5 @@ @@ -22,7 +30,14 @@ onMounted(async () => await fetchData());
- +
@@ -46,7 +61,7 @@ onMounted(async () => await fetchData()); >
- +