2020-11-10 09:55:26 +00:00
|
|
|
export const getters = {
|
|
|
|
getContacts($state) {
|
2021-05-13 08:02:19 +00:00
|
|
|
return $state.sortOrder.map(contactId => $state.records[contactId]);
|
2020-11-10 09:55:26 +00:00
|
|
|
},
|
|
|
|
getUIFlags($state) {
|
|
|
|
return $state.uiFlags;
|
|
|
|
},
|
|
|
|
getContact: $state => id => {
|
|
|
|
const contact = $state.records[id];
|
|
|
|
return contact || {};
|
|
|
|
},
|
|
|
|
getMeta: $state => {
|
|
|
|
return $state.meta;
|
|
|
|
},
|
2021-12-03 03:12:44 +00:00
|
|
|
getAppliedContactFilters: _state => {
|
|
|
|
return _state.appliedFilters;
|
|
|
|
},
|
2020-11-10 09:55:26 +00:00
|
|
|
};
|