Feature: Customise widget for bot conversations (#834)

* Feature: Customise widget for bot conversations
This commit is contained in:
Pranav Raj S 2020-05-09 22:02:43 +05:30 committed by GitHub
parent 05ea6308f2
commit f28ec29b8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 298 additions and 26 deletions

View file

@ -24,6 +24,7 @@
class="button block"
type="submit"
:disabled="!isFormValid"
:style="{ background: widgetColor, borderColor: widgetColor }"
>
{{ $t('COMPONENTS.FORM_BUBBLE.SUBMIT') }}
</button>
@ -32,6 +33,7 @@
</template>
<script>
import { mapGetters } from 'vuex';
export default {
props: {
items: {
@ -49,6 +51,9 @@ export default {
};
},
computed: {
...mapGetters({
widgetColor: 'appConfig/getWidgetColor',
}),
isFormValid() {
return this.items.reduce((acc, { name }) => {
return !!this.formValues[name] && acc;