Update widget colors based on the widgetConfig (#276)

This commit is contained in:
Pranav Raj S
2019-11-26 00:10:27 +05:30
committed by Sojan Jose
parent 9c6a101768
commit 5d2efdc7fc
11 changed files with 85 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
<template>
<header class="header-expanded">
<header class="header-expanded" :style="{ background: widgetColor }">
<div>
<h2 class="title">
{{ introHeading }}
@@ -12,8 +12,15 @@
</template>
<script>
import { mapGetters } from 'vuex';
export default {
name: 'ChatHeaderExpanded',
computed: {
...mapGetters({
widgetColor: 'appConfig/getWidgetColor',
}),
},
props: {
introHeading: {
type: String,