chore: Add support for message_templates in API inbox (#4835)

This commit is contained in:
Pranav Raj S 2022-06-10 18:40:29 +05:30 committed by GitHub
parent 9bac5873ef
commit 3f3ee6c34a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 44 additions and 25 deletions

View file

@ -267,7 +267,8 @@ export default {
return false;
},
hasWhatsappTemplates() {
return !!this.inbox.message_templates;
return !!this.$store.getters['inboxes/getWhatsAppTemplates'](this.inboxId)
.length;
},
enterToSendEnabled() {
return !!this.uiSettings.enter_to_send_enabled;