Changed Customers to Multi Page with Route Params to add mobile performance

This commit is contained in:
2023-12-06 22:06:57 +01:00
parent 987f8a0bec
commit ce3a013f86
4 changed files with 333 additions and 291 deletions

View File

@@ -120,6 +120,7 @@ export const useDataStore = defineStore('data', {
movementsBySpace: (state) => (spaceId:number) => state.movements.filter(move => move.spaceId === spaceId),
getProductById: (state) => (productId:number) => state.products.find(product => product.id === productId),
getProjectById: (state) => (projectId:number) => state.projects.find(project => project.id === projectId),
getCustomerById: (state) => (customerId:number) => state.customers.find(customer => customer.id === customerId),
getFormSubmitsWithLabelProp: (state) => (state.formSubmits.map(submit => {return{...submit, label: submit.id}})),
getResources: (state) => {
return [