7
7
<!-- Need to put these in a v-if is bound to the emits of multiplayer toggle-->
8
8
<div class =" bigButton" id =" previousDay" @click =" decrementDay"
9
9
:style =" { 'background-color': colors.background }" >< ;< ; </div >
10
- <DateInput :style =" {margin:'0px' }" @date-selected =" handleDueDateChange" :initialDate =" currentDate" />
11
- <div class =" bigButton" id =" nextDay" :style =" { 'background-color': colors.background }" >>></div >
10
+ <DateInput :style =" {margin:'0px',color:'white' }" @date-selected =" handleDateChange" v-model =" currentDate" />
11
+ <div class =" bigButton" id =" nextDay" @click =" incrementDay"
12
+ :style =" { 'background-color': colors.background }" >>></div >
12
13
</div >
13
14
</div >
14
15
15
16
<div class =" page-container" :style =" { 'background-color': colors.background }" >
16
17
<div class =" lists-container" >
17
18
<ListElement listName =" Backburner" v-model =" backburner" />
18
- <ListElement listName =" Daily List" v-model =" dailyList" :multiplayer = " isChecked " />
19
+ <ListElement listName =" Daily List" v-model =" dailyList" :initialDate = " currentDate " />
19
20
<DailyCalendar v-model:list1 =" backburner" v-model:list2 =" dailyList" />
20
21
</div >
21
22
</div >
@@ -31,6 +32,7 @@ import DailyCalendar from '@/components/CalendarComponents/DailyCalendar.vue';
31
32
import DateInput from ' @/components/ListItems/DateInput.vue' ;
32
33
import ' ./cssViews/Dashboard.css' ;
33
34
import MultiplayerToggle from ' @/components/DashboardComponents/MultiplayerToggle.vue' ;
35
+ import { getTodayDate , incrementDate , decrementDate } from ' ../date.js'
34
36
35
37
export default {
36
38
name: ' DashboardWorld' ,
@@ -45,7 +47,7 @@ export default {
45
47
colors: colors,
46
48
dailyList: [],
47
49
backburner: [],
48
- currentDate: 0 ,
50
+ currentDate: getTodayDate () ,
49
51
isChecked: false ,
50
52
};
51
53
},
@@ -63,10 +65,12 @@ export default {
63
65
this .itemsArray [this .selectedItemIndex ].scheduledDate = date;
64
66
},
65
67
decrementDay () {
66
- console .log (" 0" );
68
+ this .currentDate = decrementDate (this .currentDate );
69
+ console .log (this .currentDate );
67
70
},
68
71
incrementDay () {
69
-
72
+ this .currentDate = incrementDate (this .currentDate );
73
+ console .log (this .currentDate );
70
74
},
71
75
onEventClicked ({ event , listType, index }) {
72
76
console .log (` Event clicked:` , event );
0 commit comments