Bladeren bron

[Administration] Distributions : nombre de distributions chargées #642

refactoring
Guillaume Bourgeois 1 jaar geleden
bovenliggende
commit
cc7cf24b50
2 gewijzigde bestanden met toevoegingen van 470 en 462 verwijderingen
  1. +465
    -460
      backend/controllers/DistributionController.php
  2. +5
    -2
      backend/web/js/vuejs/distribution-index.js

+ 465
- 460
backend/controllers/DistributionController.php
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 5
- 2
backend/web/js/vuejs/distribution-index.js Bestand weergeven

@@ -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
}) ;
}
}

Laden…
Annuleren
Opslaan