mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Co-authored-by: Sojan <sojan@pepalo.com> Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
16 lines
309 B
JavaScript
16 lines
309 B
JavaScript
export const getters = {
|
|
getContacts($state) {
|
|
return Object.values($state.records);
|
|
},
|
|
getUIFlags($state) {
|
|
return $state.uiFlags;
|
|
},
|
|
getContact: $state => id => {
|
|
const contact = $state.records[id];
|
|
return contact || {};
|
|
},
|
|
getMeta: $state => {
|
|
return $state.meta;
|
|
},
|
|
};
|