From 4c48edc7905d6fb16b01ea707ee7e730dff78ced Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 7 Dec 2023 05:01:08 +0530 Subject: added view invoice page with print button! --- src/router/index.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/router/index.ts') diff --git a/src/router/index.ts b/src/router/index.ts index 9817a1e..496f5d0 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,6 +10,7 @@ import AllItems from '../views/AllItems.vue' import NewItem from '../views/NewItem.vue' import NewInvoice from '../views/NewInvoice.vue' import EditInvoice from '../views/EditInvoice.vue' +import ViewInvoice from '../views/ViewInvoice.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -69,11 +70,17 @@ const router = createRouter({ meta: { isAuth: true } }, { - path: '/invoice/edit-draft/:id', - name: 'edit-draft', + path: '/invoice/edit/:id', + name: 'edit-invoice', component: EditInvoice, meta: { isAuth: true } }, + { + path: '/invoice/view/:id', + name: 'view-invoice', + component: ViewInvoice, + meta: { isAuth: true } + }, ] }) -- cgit v1.2.3