23 lines
418 B
JavaScript
23 lines
418 B
JavaScript
|
import { mapGetters } from 'vuex';
|
||
|
|
||
|
export default {
|
||
|
computed: {
|
||
|
...mapGetters({ teams: 'teams/getTeams' }),
|
||
|
hasAnAssignedTeam() {
|
||
|
return !!this.currentChat?.meta?.team;
|
||
|
},
|
||
|
teamsList() {
|
||
|
if (this.hasAnAssignedTeam) {
|
||
|
return [
|
||
|
{
|
||
|
id: 0,
|
||
|
name: 'None',
|
||
|
},
|
||
|
...this.teams,
|
||
|
];
|
||
|
}
|
||
|
return this.teams;
|
||
|
},
|
||
|
},
|
||
|
};
|