Browse Source

Include archive;

modals-to-spa
stingl 4 years ago
parent
commit
386c10c557
  1. 2
      index.html
  2. 10
      js/app.js

2
index.html

@ -716,7 +716,7 @@
<input id="date" type="date" class="form-control" v-model="customDateForPastDays"> <input id="date" type="date" class="form-control" v-model="customDateForPastDays">
</div> </div>
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item" v-for="entry in collectDataForDay(0, customDateForPastDays)"> <li class="list-group-item" v-for="entry in collectDataForDay(0, customDateForPastDays)" :style="entry.archive ? 'background-color: lightgrey;' : ''">
{{ entry.ticket }} {{ entry.ticket }}
<span class="float-end">{{ timeWithPostFix(entry.minutes) }}</span> <span class="float-end">{{ timeWithPostFix(entry.minutes) }}</span>
</li> </li>

10
js/app.js

@ -493,6 +493,16 @@ const TimeTrack = {
}); });
}); });
this.archive.forEach((ticket) => {
ticket.history.forEach((historyEntry) => {
if (moment(historyEntry.trackingStarted).format("MMM Do YY") === day) {
historyEntry.ticket = ticket.number;
historyEntry.archive = true;
collection.push(historyEntry);
}
});
});
return collection; return collection;
}, },
sendPortalChangeRequest() { sendPortalChangeRequest() {