From 623b107f658e5a4a5e7bdf8981deda0863705379 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Tue, 21 Mar 2023 13:02:06 +0000 Subject: [PATCH] work towards comments --- src/components/AddNote.vue | 47 ++++++++++++ src/components/MyNav.vue | 1 - src/router/index.js | 3 +- src/views/customers/CustomerList.vue | 103 +++++++++++++++++++++------ 4 files changed, 128 insertions(+), 26 deletions(-) create mode 100644 src/components/AddNote.vue diff --git a/src/components/AddNote.vue b/src/components/AddNote.vue new file mode 100644 index 0000000..d29ce86 --- /dev/null +++ b/src/components/AddNote.vue @@ -0,0 +1,47 @@ + + diff --git a/src/components/MyNav.vue b/src/components/MyNav.vue index 7c98559..ab6e72a 100644 --- a/src/components/MyNav.vue +++ b/src/components/MyNav.vue @@ -101,7 +101,6 @@ export default{ methods:{ get_menu() { let items = [] - items.push({title: "Dashboard", value:"/about"}) items.push({title: "Customers", value:"/customers", children:[{title:"List", diff --git a/src/router/index.js b/src/router/index.js index 0db63b4..44a02aa 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,5 +1,4 @@ import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' const AboutView = () => import('../views/AboutView.vue') const LoginPage = () => import('../views/LoginPage.vue') const LogOut = () => import('../components/LogOut.vue') @@ -13,7 +12,7 @@ const routes = [ { path: '/', name: 'home', - component: HomeView + component: CustomerList }, { path: '/about', diff --git a/src/views/customers/CustomerList.vue b/src/views/customers/CustomerList.vue index f97953a..968eef6 100644 --- a/src/views/customers/CustomerList.vue +++ b/src/views/customers/CustomerList.vue @@ -15,36 +15,48 @@ - + + - -

Notes

- +

Comments

+ - - {{ item.text }} + + {{ item.comment }} +
+ + +