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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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