acammies
2018-04-13 2fa8ab7e834c36a080f5cce5b6eede1ba8bc8112
src/components/TodoItem.vue
@@ -9,11 +9,11 @@
      <span class="md-list-item-text" :class="{'strike-through': todoItem.completed}">{{ todoItem.title }}</span>
    </md-list-item>
      <!-- TODO - Uncomment this as part of exercise3 -->
      <md-button class="important-flag"
      <!-- <md-button class="important-flag"
        @click="markImportant()"
        >
        <svg :class="{'red-flag': todoItem.important}"  height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" ><path d="M0 0h24v24H0z" fill="none"/><path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/></svg>
      </md-button>
      </md-button> -->
    </div>
  </div>
</template>
@@ -31,7 +31,7 @@
  },
  methods: {
    markCompleted() {
      this.$store.dispatch("markTodoCompleted", this.todoItem._id);
      this.$store.dispatch("updateTodo", this.todoItem._id);
      console.info("INFO - Mark todo as completed ", this.todoItem.completed);
    },
    markImportant() {