chore: Add inbox id in get campaigns API (#2278)
This commit is contained in:
@@ -335,6 +335,10 @@ export default {
|
||||
if (this.isAWebWidgetInbox) {
|
||||
return [
|
||||
...visibleToAllChannelTabs,
|
||||
{
|
||||
key: 'campaign',
|
||||
name: this.$t('INBOX_MGMT.TABS.CAMPAIGN'),
|
||||
},
|
||||
{
|
||||
key: 'preChatForm',
|
||||
name: this.$t('INBOX_MGMT.TABS.PRE_CHAT_FORM'),
|
||||
@@ -397,7 +401,7 @@ export default {
|
||||
},
|
||||
toggleInput(selected, current) {
|
||||
if (selected.includes(current)) {
|
||||
const newSelectedFlags = selected.filter((flag) => flag !== current);
|
||||
const newSelectedFlags = selected.filter(flag => flag !== current);
|
||||
return newSelectedFlags;
|
||||
}
|
||||
return [...selected, current];
|
||||
@@ -438,7 +442,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async updateAgents() {
|
||||
const agentList = this.selectedAgents.map((el) => el.id);
|
||||
const agentList = this.selectedAgents.map(el => el.id);
|
||||
this.isAgentListUpdating = true;
|
||||
try {
|
||||
await this.$store.dispatch('inboxMembers/create', {
|
||||
|
||||
@@ -62,7 +62,9 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch('campaigns/get');
|
||||
this.$store.dispatch('campaigns/get', {
|
||||
inboxId: this.$route.params.inboxId,
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
openAddPopup() {
|
||||
|
||||
Reference in New Issue
Block a user