donal
2018-04-16 e351bf9cb34df51e911e9aa46450ad6da8561f77
src/store/actions.js
@@ -98,14 +98,11 @@
  updateTodo({ commit, state }, { id, important }) {
    let i = state.todos.findIndex(todo => todo._id === id);
    if (important) {
      // TODO - add commit imporant here!
      commit("MARK_TODO_IMPORTANT", i);
    } else {
      commit("MARK_TODO_COMPLETED", i);
    }
    console.info(
      "TESTSY MC TESTFACES",
      config.todoEndpoint + "/" + state.todos[i]._id
    );
    // Fire and forget style backend update ;)
    return axios
      .put(config.todoEndpoint + "/" + state.todos[i]._id, state.todos[i])