@@ -202,16 +202,19 @@ var app = new Vue({ | |||
app.calendar.attrs = [] ; | |||
var distributions = response.data.distributions ; | |||
console.log(app.calendar.attrs); | |||
if(distributions.length) { | |||
for(var i= 0; i < distributions.length; i++) { | |||
app.calendar.attrs.push({ | |||
app.calendar.attrs.push({ | |||
highlight: { | |||
backgroundColor: '#5cb85c', | |||
}, | |||
contentStyle: { | |||
color: 'white', | |||
}, | |||
dates: distributions[i].date, | |||
dates: distributions[i].date | |||
}) ; | |||
} | |||
} |