From 9eba55f530127695d9756dd9ba02dc8c1ccfbd1d Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 28 Mar 2025 11:36:27 +0100 Subject: [PATCH] feat(transaction): add rule from transaction --- frontend/js/router/index.js | 2 +- frontend/js/views/category/EditView.vue | 77 +++++++++++++++++++--- frontend/js/views/transaction/ShowView.vue | 59 ++++++++++++----- 3 files changed, 112 insertions(+), 26 deletions(-) diff --git a/frontend/js/router/index.js b/frontend/js/router/index.js index e1c7fd2..3322c62 100644 --- a/frontend/js/router/index.js +++ b/frontend/js/router/index.js @@ -61,7 +61,7 @@ const router = createRouter({ component: () => import('../views/category/ListView.vue'), }, { - path: '/category/edit/:id', + path: '/category/edit/:id/:transaction?', name: 'category_edit', meta: { label: 'Catégorie' }, component: () => import('../views/category/EditView.vue'), diff --git a/frontend/js/views/category/EditView.vue b/frontend/js/views/category/EditView.vue index f9fbd7b..23decc9 100644 --- a/frontend/js/views/category/EditView.vue +++ b/frontend/js/views/category/EditView.vue @@ -19,6 +19,17 @@ @click="doBack" >Retour + + + Appliquer les règles +