d7cfe6858e
Co-authored-by: Tejaswini <tejaswini@chatwoot.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
18 lines
419 B
JavaScript
18 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;
|
|
},
|
|
};
|