fix: cambiar filtro por defecto a Inactivos en gestión de productos
- Default filter cambia de 'all' a 'false' (Inactivos) - Limpieza de whitespace
This commit is contained in:
@@ -158,7 +158,7 @@ import { ref, watch, inject, onMounted, computed } from "vue";
|
|||||||
|
|
||||||
// Estado
|
// Estado
|
||||||
const api = inject("api");
|
const api = inject("api");
|
||||||
const activeFilter = ref("all");
|
const activeFilter = ref("false");
|
||||||
const products = ref([]);
|
const products = ref([]);
|
||||||
const selected = ref([]);
|
const selected = ref([]);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
@@ -180,8 +180,8 @@ const filteredProducts = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const query = searchQuery.value.toLowerCase().trim();
|
const query = searchQuery.value.toLowerCase().trim();
|
||||||
return products.value.filter(product =>
|
return products.value.filter((product) =>
|
||||||
product.name.toLowerCase().includes(query)
|
product.name.toLowerCase().includes(query),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user