fix: Disable "none" option from team dropdown If team is not selected (#2876)

This commit is contained in:
Muhsin Keloth
2021-08-25 14:11:16 +05:30
committed by GitHub
parent a9ca76d9df
commit a27ccc5866

View File

@@ -191,8 +191,9 @@ export default {
return this.additionalAttributes.initiated_at; return this.additionalAttributes.initiated_at;
}, },
browserName() { browserName() {
return `${this.browser.browser_name || ''} ${this.browser return `${this.browser.browser_name || ''} ${
.browser_version || ''}`; this.browser.browser_version || ''
}`;
}, },
contactAdditionalAttributes() { contactAdditionalAttributes() {
return this.contact.additional_attributes || {}; return this.contact.additional_attributes || {};
@@ -216,10 +217,8 @@ export default {
return `${cityAndCountry} ${countryFlag}`; return `${cityAndCountry} ${countryFlag}`;
}, },
platformName() { platformName() {
const { const { platform_name: platformName, platform_version: platformVersion } =
platform_name: platformName, this.browser;
platform_version: platformVersion,
} = this.browser;
return `${platformName || ''} ${platformVersion || ''}`; return `${platformName || ''} ${platformVersion || ''}`;
}, },
channelType() { channelType() {
@@ -232,7 +231,16 @@ export default {
return this.$store.getters['contacts/getContact'](this.contactId); return this.$store.getters['contacts/getContact'](this.contactId);
}, },
teamsList() { teamsList() {
return [{ id: 0, name: 'None' }, ...this.teams]; if (this.assignedTeam) {
return [
{
id: 0,
name: 'None',
},
...this.teams,
];
}
return this.teams;
}, },
assignedAgent: { assignedAgent: {
get() { get() {