Set hideSearchField in InvoiceOrdersPagination component

Added a call to setHideSearchField with the hideSearch prop to manage the search field visibility dynamically. This ensures better control over the search UI based on the provided properties.
This commit is contained in:
Jepp9350
2025-04-22 12:35:33 +02:00
parent 006b0351cc
commit f1b7236bed
@@ -50,6 +50,7 @@ import OrdersTable from "@/components/displays/department/pos/orders/ordersTable
import {SessionUser} from "@/components/session/token/SessionUser.vue";
const router = useRouter();
setHideSearchField(props.hideSearch);
setEndpoint("/orders", false);
// If the customer filter is set, filter the orders by the customer number
if (props.setCustomerFilter > 0) {