From e9203664fdd9103331329aa34e2b52e1bb3a5066 Mon Sep 17 00:00:00 2001 From: Pedro Lopes Date: Thu, 1 Oct 2020 21:36:28 -0300 Subject: [PATCH 1/2] fixing coments --- src/components/EventCard/EventCard.vue | 78 -------------------------- src/components/cpmCard.vue | 32 ++++++++--- 2 files changed, 24 insertions(+), 86 deletions(-) delete mode 100644 src/components/EventCard/EventCard.vue diff --git a/src/components/EventCard/EventCard.vue b/src/components/EventCard/EventCard.vue deleted file mode 100644 index d69380a..0000000 --- a/src/components/EventCard/EventCard.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/cpmCard.vue b/src/components/cpmCard.vue index 1059930..6f4f2e1 100644 --- a/src/components/cpmCard.vue +++ b/src/components/cpmCard.vue @@ -29,11 +29,25 @@

{{cardData.description}}

- + Comentários - - {{comment.user.name}}: {{comment.comment}} + + +
+ + + mdi-account-circle + avatar + + +
+

{{ item.comments[0].user.name }}:

+ +

{{ item.comments[0].comment }}

+
+
+
@@ -47,11 +61,13 @@ export default { name: 'Card', props: ['cardData'], - data() { - return { - - } - }, + data:() => ({ + cardDataArray: [] + }), + + created(){ + this.cardDataArray.push(this.cardData) + } } From f565e941d775c57233de4596969a8b2c3e924c3b Mon Sep 17 00:00:00 2001 From: Pedro Lopes Date: Thu, 1 Oct 2020 21:51:01 -0300 Subject: [PATCH 2/2] incomplete coment, missing post request --- src/components/cpmCard.vue | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/components/cpmCard.vue b/src/components/cpmCard.vue index 6f4f2e1..75d00dc 100644 --- a/src/components/cpmCard.vue +++ b/src/components/cpmCard.vue @@ -29,25 +29,36 @@

{{cardData.description}}

- + Comentários - + -
+
mdi-account-circle avatar -
-

{{ item.comments[0].user.name }}:

+ {{ item.comments[0].user.name }}: -

{{ item.comments[0].comment }}

-
+

{{ item.comments[0].comment }}

- + + + + + + Enviar + + @@ -62,7 +73,8 @@ export default { name: 'Card', props: ['cardData'], data:() => ({ - cardDataArray: [] + cardDataArray: [], + newComent:'' }), created(){