feat: Replace conversation/teamMixin within the components (#9923)

This commit is contained in:
Sivin Varghese
2024-08-11 10:09:08 +05:30
committed by GitHub
parent 3558878ae2
commit d5f34bf9d0
5 changed files with 29 additions and 28 deletions

View File

@@ -1,22 +0,0 @@
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;
},
},
};