diff --git a/app/javascript/dashboard/components-next/ConversationWorkflow/AttributeListItem.vue b/app/javascript/dashboard/components-next/ConversationWorkflow/AttributeListItem.vue new file mode 100644 index 000000000..f5822f67d --- /dev/null +++ b/app/javascript/dashboard/components-next/ConversationWorkflow/AttributeListItem.vue @@ -0,0 +1,88 @@ + + + + + + + + {{ attribute.label }} + + + + + + {{ attribute.type }} + + + + + {{ attribute.value }} + + + + + + + + + + + + + {{ attribute.attribute_description || attribute.description || '' }} + + + diff --git a/app/javascript/dashboard/components-next/CustomAttributes/AttributeBadge.vue b/app/javascript/dashboard/components-next/CustomAttributes/AttributeBadge.vue new file mode 100644 index 000000000..fb0c9867a --- /dev/null +++ b/app/javascript/dashboard/components-next/CustomAttributes/AttributeBadge.vue @@ -0,0 +1,42 @@ + + + + + + {{ + t(config.labelKey) + }} + + diff --git a/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json b/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json index cea6359de..78886f451 100644 --- a/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json @@ -129,6 +129,10 @@ "ENABLE_REGEX": { "LABEL": "Enable regex validation" } + }, + "BADGES": { + "PRE_CHAT": "Pre-chat", + "RESOLUTION": "Resolution" } } } diff --git a/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue index 636892005..bf93ffa1f 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue @@ -1,27 +1,49 @@ @@ -77,27 +169,25 @@ const onClickTabChange = index => { - - - - - - + + + + + + { :on-close="hideAddPopup" :selected-attribute-model-tab="selectedTabIndex" /> + + + +
+ {{ attribute.attribute_description || attribute.description || '' }} +