mirror of
https://github.com/lingble/chatwoot.git
synced 2026-03-20 03:52:43 +00:00
Co-authored-by: Tejaswini <tejaswini@chatwoot.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
19 lines
419 B
JavaScript
19 lines
419 B
JavaScript
export const getters = {
|
|
getContacts($state) {
|
|
return $state.sortOrder.map(contactId => $state.records[contactId]);
|
|
},
|
|
getUIFlags($state) {
|
|
return $state.uiFlags;
|
|
},
|
|
getContact: $state => id => {
|
|
const contact = $state.records[id];
|
|
return contact || {};
|
|
},
|
|
getMeta: $state => {
|
|
return $state.meta;
|
|
},
|
|
getAppliedContactFilters: _state => {
|
|
return _state.appliedFilters;
|
|
},
|
|
};
|