File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export default defineComponent({
8080 },
8181 computed: {
8282 todos() {
83+ // eslint-disable-next-line
8384 return store .getters .getTodos .sort ((a : any , b : any ) =>
8485 a .dueDate .localeCompare (b .dueDate )
8586 ); // get todos and sort tasks by due date with the top one the oldest
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import createPersistedState from "vuex-persistedstate";
33
44export default createStore ( {
55 state : {
6+ //eslint-disable-next-line
67 todos : [ ] as any [ ] ,
78 user : {
89 level : 1 as number , //set level to 1 as total xp is 0 when state is created
@@ -247,6 +248,7 @@ export default createStore({
247248 ) as boolean ; //ask user to confirm task deletion
248249 }
249250 if ( deleteTask || state . todos [ index ] . completed ) {
251+ //delete task if one-time task is completed when the delete button is clicked or when user confirms deletion alert
250252 state . todos . splice ( index , 1 ) ; //delete task item
251253 }
252254 } ,
Original file line number Diff line number Diff line change 1- declare module "vue-ellipse-progress" ;
1+ declare module "vue-ellipse-progress" ; //use vue-ellipse-progress for circular progress
You can’t perform that action at this time.
0 commit comments