15 lines
340 B
JavaScript
15 lines
340 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;
|
|
},
|
|
};
|