From d8599c62dd36b00cd69d1ef1a90fda2819c330e5 Mon Sep 17 00:00:00 2001 From: Nithin David Thomas Date: Mon, 16 Mar 2020 12:08:40 +0530 Subject: [PATCH] Feature: Support options message type on widget and dashboard (#614) --- .../shared/components/CardButton.vue | 6 -- app/javascript/shared/components/ChatCard.vue | 6 ++ .../shared/components/ChatOption.vue | 68 ++++++++++++++ .../shared/components/ChatOptions.vue | 89 +++++++++++++++++++ .../widget/components/ConversationWrap.vue | 3 +- 5 files changed, 165 insertions(+), 7 deletions(-) create mode 100644 app/javascript/shared/components/ChatOption.vue create mode 100644 app/javascript/shared/components/ChatOptions.vue diff --git a/app/javascript/shared/components/CardButton.vue b/app/javascript/shared/components/CardButton.vue index c03443dbf..eea0b1a5a 100644 --- a/app/javascript/shared/components/CardButton.vue +++ b/app/javascript/shared/components/CardButton.vue @@ -50,11 +50,5 @@ export default { margin-top: $space-smaller; border-radius: $space-micro; font-weight: $font-weight-medium; - - + .action-button { - background: white; - @include thin-border($color-woot); - color: $color-woot; - } } diff --git a/app/javascript/shared/components/ChatCard.vue b/app/javascript/shared/components/ChatCard.vue index 15f7b0827..8accb6d8c 100644 --- a/app/javascript/shared/components/ChatCard.vue +++ b/app/javascript/shared/components/ChatCard.vue @@ -79,5 +79,11 @@ export default { object-fit: contain; max-height: 150px; } + + .action-button + .action-button { + background: white; + @include thin-border($color-woot); + color: $color-woot; + } } diff --git a/app/javascript/shared/components/ChatOption.vue b/app/javascript/shared/components/ChatOption.vue new file mode 100644 index 000000000..1096a1470 --- /dev/null +++ b/app/javascript/shared/components/ChatOption.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/app/javascript/shared/components/ChatOptions.vue b/app/javascript/shared/components/ChatOptions.vue new file mode 100644 index 000000000..bbb714a9f --- /dev/null +++ b/app/javascript/shared/components/ChatOptions.vue @@ -0,0 +1,89 @@ + + + + + + diff --git a/app/javascript/widget/components/ConversationWrap.vue b/app/javascript/widget/components/ConversationWrap.vue index a80a422c1..0b12dc9d8 100755 --- a/app/javascript/widget/components/ConversationWrap.vue +++ b/app/javascript/widget/components/ConversationWrap.vue @@ -90,7 +90,8 @@ export default {