feat: Add the ability to edit inbox name (#2406)
This commit is contained in:
parent
77d4f86ec9
commit
174886671d
2 changed files with 22 additions and 9 deletions
|
@ -28,6 +28,14 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ADD": {
|
"ADD": {
|
||||||
|
"CHANNEL_NAME": {
|
||||||
|
"LABEL": "Inbox Name",
|
||||||
|
"PLACEHOLDER": "Enter your inbox name (eg: Acme Inc)"
|
||||||
|
},
|
||||||
|
"WEBSITE_NAME": {
|
||||||
|
"LABEL": "Website Name",
|
||||||
|
"PLACEHOLDER": "Enter your website name (eg: Acme Inc)"
|
||||||
|
},
|
||||||
"FB": {
|
"FB": {
|
||||||
"HELP": "PS: By signing in, we only get access to your Page's messages. Your private messages can never be accessed by Chatwoot.",
|
"HELP": "PS: By signing in, we only get access to your Page's messages. Your private messages can never be accessed by Chatwoot.",
|
||||||
"CHOOSE_PAGE": "Choose Page",
|
"CHOOSE_PAGE": "Choose Page",
|
||||||
|
@ -48,10 +56,6 @@
|
||||||
"CHANNEL_AVATAR": {
|
"CHANNEL_AVATAR": {
|
||||||
"LABEL": "Channel Avatar"
|
"LABEL": "Channel Avatar"
|
||||||
},
|
},
|
||||||
"CHANNEL_NAME": {
|
|
||||||
"LABEL": "Website Name",
|
|
||||||
"PLACEHOLDER": "Enter your website name (eg: Acme Inc)"
|
|
||||||
},
|
|
||||||
"CHANNEL_DOMAIN": {
|
"CHANNEL_DOMAIN": {
|
||||||
"LABEL": "Website Domain",
|
"LABEL": "Website Domain",
|
||||||
"PLACEHOLDER": "Enter your website domain (eg: acme.com)"
|
"PLACEHOLDER": "Enter your website domain (eg: acme.com)"
|
||||||
|
|
|
@ -25,13 +25,10 @@
|
||||||
@change="handleImageUpload"
|
@change="handleImageUpload"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
v-if="isAWebWidgetInbox"
|
|
||||||
v-model.trim="selectedInboxName"
|
v-model.trim="selectedInboxName"
|
||||||
class="medium-9 columns"
|
class="medium-9 columns"
|
||||||
:label="$t('INBOX_MGMT.ADD.WEBSITE_CHANNEL.CHANNEL_NAME.LABEL')"
|
:label="inboxNameLabel"
|
||||||
:placeholder="
|
:placeholder="inboxNamePlaceHolder"
|
||||||
$t('INBOX_MGMT.ADD.WEBSITE_CHANNEL.CHANNEL_NAME.PLACEHOLDER')
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
v-if="isAWebWidgetInbox"
|
v-if="isAWebWidgetInbox"
|
||||||
|
@ -381,6 +378,18 @@ export default {
|
||||||
messengerScript() {
|
messengerScript() {
|
||||||
return createMessengerScript(this.inbox.page_id);
|
return createMessengerScript(this.inbox.page_id);
|
||||||
},
|
},
|
||||||
|
inboxNameLabel() {
|
||||||
|
if (this.isAWebWidgetInbox) {
|
||||||
|
return this.$t('INBOX_MGMT.ADD.WEBSITE_NAME.LABEL');
|
||||||
|
}
|
||||||
|
return this.$t('INBOX_MGMT.ADD.CHANNEL_NAME.LABEL');
|
||||||
|
},
|
||||||
|
inboxNamePlaceHolder() {
|
||||||
|
if (this.isAWebWidgetInbox) {
|
||||||
|
return this.$t('INBOX_MGMT.ADD.WEBSITE_NAME.PLACEHOLDER');
|
||||||
|
}
|
||||||
|
return this.$t('INBOX_MGMT.ADD.CHANNEL_NAME.PLACEHOLDER');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route(to) {
|
$route(to) {
|
||||||
|
|
Loading…
Reference in a new issue