Merge branch 'develop' into feat/CW-5624
This commit is contained in:
@@ -206,7 +206,8 @@ export default {
|
||||
this.isASmsInbox ||
|
||||
this.isAWhatsAppChannel ||
|
||||
this.isAFacebookInbox ||
|
||||
this.isAPIInbox
|
||||
this.isAPIInbox ||
|
||||
this.isATelegramChannel
|
||||
);
|
||||
},
|
||||
inboxNameLabel() {
|
||||
@@ -341,7 +342,7 @@ export default {
|
||||
try {
|
||||
const payload = {
|
||||
id: this.currentInboxId,
|
||||
name: this.selectedInboxName,
|
||||
name: this.selectedInboxName?.trim(),
|
||||
enable_email_collect: this.emailCollectEnabled,
|
||||
allow_messages_after_resolved: this.allowMessagesAfterResolved,
|
||||
greeting_enabled: this.greetingEnabled,
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ export default {
|
||||
const whatsappChannel = await this.$store.dispatch(
|
||||
'inboxes/createChannel',
|
||||
{
|
||||
name: this.inboxName,
|
||||
name: this.inboxName?.trim(),
|
||||
channel: {
|
||||
type: 'whatsapp',
|
||||
phone_number: this.phoneNumber,
|
||||
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
|
||||
try {
|
||||
const apiChannel = await this.$store.dispatch('inboxes/createChannel', {
|
||||
name: this.channelName,
|
||||
name: this.channelName?.trim(),
|
||||
channel: {
|
||||
type: 'api',
|
||||
webhook_url: this.webhookUrl,
|
||||
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
|
||||
try {
|
||||
const smsChannel = await this.$store.dispatch('inboxes/createChannel', {
|
||||
name: this.inboxName,
|
||||
name: this.inboxName?.trim(),
|
||||
channel: {
|
||||
type: 'sms',
|
||||
phone_number: this.phoneNumber,
|
||||
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
const whatsappChannel = await this.$store.dispatch(
|
||||
'inboxes/createChannel',
|
||||
{
|
||||
name: this.inboxName,
|
||||
name: this.inboxName?.trim(),
|
||||
channel: {
|
||||
type: 'whatsapp',
|
||||
phone_number: this.phoneNumber,
|
||||
|
||||
@@ -179,7 +179,7 @@ export default {
|
||||
user_access_token: this.user_access_token,
|
||||
page_access_token: this.selectedPage.access_token,
|
||||
page_id: this.selectedPage.id,
|
||||
inbox_name: this.selectedPage.name,
|
||||
inbox_name: this.selectedPage.name?.trim(),
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
const lineChannel = await this.$store.dispatch(
|
||||
'inboxes/createChannel',
|
||||
{
|
||||
name: this.channelName,
|
||||
name: this.channelName?.trim(),
|
||||
channel: {
|
||||
type: 'line',
|
||||
line_channel_id: this.lineChannelId,
|
||||
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
'inboxes/createTwilioChannel',
|
||||
{
|
||||
twilio_channel: {
|
||||
name: this.channelName,
|
||||
name: this.channelName?.trim(),
|
||||
medium: this.medium,
|
||||
account_sid: this.accountSID,
|
||||
api_key_sid: this.apiKeySID,
|
||||
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
const website = await this.$store.dispatch(
|
||||
'inboxes/createWebsiteChannel',
|
||||
{
|
||||
name: this.inboxName,
|
||||
name: this.inboxName?.trim(),
|
||||
greeting_enabled: this.greetingEnabled,
|
||||
greeting_message: this.greetingMessage,
|
||||
channel: {
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ export default {
|
||||
const emailChannel = await this.$store.dispatch(
|
||||
'inboxes/createChannel',
|
||||
{
|
||||
name: this.channelName,
|
||||
name: this.channelName?.trim(),
|
||||
channel: {
|
||||
type: 'email',
|
||||
email: this.email,
|
||||
|
||||
Reference in New Issue
Block a user