Feature: Ability to customise widget color (#903)

- Use Chrome style color-picker
This commit is contained in:
Pranav Raj S 2020-05-30 17:28:00 +05:30 committed by GitHub
parent ec197b077d
commit 47ec7ad7c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 124 additions and 68 deletions

View file

@ -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);
}
});
};