🐛 fix synced time slices

This commit is contained in:
Baptiste Lemoine 2020-02-19 17:23:24 +01:00
parent d7a2a8d6b7
commit ff8e02b215
2 changed files with 6 additions and 7 deletions

View File

@ -40,6 +40,9 @@ export const defaultTimeOfDay: TimeSlices[] = (() => {
export const otherTimeOfDay: TimeSlices[] = (() => {
return [...otherSlicesOfDay]
})();
export const moreTimeOfDay: TimeSlices[] = (() => {
return [...otherSlicesOfDay]
})();
export const defaultDates: DateChoice[] = [
{
literal: `${currentYear}-${currentMonth}-${currentDay}`,
@ -62,17 +65,17 @@ export const otherDefaultDates: DateChoice[] = [
{
literal: `${currentYear}-${currentMonth}-${currentDay}`,
date_object: new Date(),
timeList: otherTimeOfDay
timeList: defaultTimeOfDay
},
{
literal: `${currentYear}-${currentMonth}-${currentDay + 1}`,
date_object: new Date(currentYear, currentMonth, currentDay + 1),
timeList: defaultTimeOfDay
timeList: otherTimeOfDay
},
{
literal: `${currentYear}-${currentMonth}-${currentDay + 2}`,
date_object: new Date(),
timeList: otherTimeOfDay
timeList: moreTimeOfDay
}
];
export const defaultAnswers: PollAnswer[] = [{

View File

@ -183,10 +183,6 @@
*ngIf=" 'true' === config.allowSeveralHours"
class="several-times"
>
<pre class='debug padded warning' >
choice.timeList :
{{choice.timeList|json}}
</pre >
<h2 >Several hours</h2 >
<div
*ngFor="let timeItem of choice.timeList; index as idTime"