Test card layout

This commit is contained in:
2020-06-09 18:01:46 +02:00
parent 1ca783e69a
commit dbf3b4344d
3 changed files with 49 additions and 163 deletions
+2 -3
View File
@@ -7,7 +7,7 @@ export const mutations = {
state.notes = notes
},
add(state, note) {
state.notes.push(note)
state.notes.unshift(note)
},
delete(state, uuid) {
state.notes = state.notes.filter((e) => e.uuid !== uuid)
@@ -16,8 +16,7 @@ export const mutations = {
export const actions = {
async load({ commit }) {
await new Promise((resolve) => setTimeout(resolve, 2000))
await new Promise((resolve) => setTimeout(resolve, 600))
this.$axios.get('/notes').then(({ data }) => commit('set', data))
},
// FIXME: make the api send the new date back