Feature: Slack - receive messages, create threads, send replies (#974)
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
parent
aa8a85b8bd
commit
1ef8d03e18
53 changed files with 815 additions and 188 deletions
|
@ -25,6 +25,15 @@ export const update = (state, data) => {
|
|||
});
|
||||
};
|
||||
|
||||
/* when you don't want to overwrite the whole object */
|
||||
export const updateAttributes = (state, data) => {
|
||||
state.records.forEach((element, index) => {
|
||||
if (element.id === data.id) {
|
||||
Vue.set(state.records, index, { ...state.records[index], ...data });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export const destroy = (state, id) => {
|
||||
state.records = state.records.filter(record => record.id !== id);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue