From f99deb26311380363afb2224a219aad25d47cb5f Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sat, 29 Jan 2022 10:20:02 +0100 Subject: [PATCH] List items displaying. --- src/components/ItemCreateModal.vue | 54 ++++++++++ src/components/ListCreateUpdateModal.vue | 1 - src/router/index.ts | 3 +- src/views/List.vue | 129 +++++++++++++++++++++++ src/views/Lists.vue | 2 +- 5 files changed, 186 insertions(+), 3 deletions(-) create mode 100644 src/components/ItemCreateModal.vue create mode 100644 src/views/List.vue diff --git a/src/components/ItemCreateModal.vue b/src/components/ItemCreateModal.vue new file mode 100644 index 0000000..8405fcb --- /dev/null +++ b/src/components/ItemCreateModal.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/src/components/ListCreateUpdateModal.vue b/src/components/ListCreateUpdateModal.vue index 9251a0f..59800a7 100644 --- a/src/components/ListCreateUpdateModal.vue +++ b/src/components/ListCreateUpdateModal.vue @@ -23,7 +23,6 @@ export default { name: "ListCreateUpdateModal", props: ['addModalShown', 'item'], data: function() { - console.log(this.item); return { name: this.item != null ? this.item.name : '' } diff --git a/src/router/index.ts b/src/router/index.ts index b0bee1b..b1deb63 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -11,7 +11,8 @@ const routes: Array = [ path: '/lists', name: 'Lists', component: () => import('../views/Lists.vue') - } + }, + { path: '/lists/:id', name: 'List', component: () => import('../views/List.vue') }, ] const router = createRouter({ diff --git a/src/views/List.vue b/src/views/List.vue new file mode 100644 index 0000000..3b230ae --- /dev/null +++ b/src/views/List.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/src/views/Lists.vue b/src/views/Lists.vue index 65938f4..00f31e9 100644 --- a/src/views/Lists.vue +++ b/src/views/Lists.vue @@ -27,7 +27,7 @@