mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Feature: Ability to customise widget color (#903)
- Use Chrome style color-picker
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
export const set = (state, data) => {
|
||||
state.records = data;
|
||||
};
|
||||
@@ -18,7 +20,7 @@ export const setSingleRecord = (state, data) => {
|
||||
export const update = (state, data) => {
|
||||
state.records.forEach((element, index) => {
|
||||
if (element.id === data.id) {
|
||||
state.records[index] = data;
|
||||
Vue.set(state.records, index, data);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user