mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-07-16 21:14:27 +08:00
Co-authored-by: Tejaswini <[email protected]> Co-authored-by: Pranav Raj S <[email protected]> Co-authored-by: Muhsin Keloth <[email protected]>
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;
|
|
},
|
|
};
|