🐛 fix synced time slices
This commit is contained in:
parent
d7a2a8d6b7
commit
ff8e02b215
|
@ -40,6 +40,9 @@ export const defaultTimeOfDay: TimeSlices[] = (() => {
|
||||||
export const otherTimeOfDay: TimeSlices[] = (() => {
|
export const otherTimeOfDay: TimeSlices[] = (() => {
|
||||||
return [...otherSlicesOfDay]
|
return [...otherSlicesOfDay]
|
||||||
})();
|
})();
|
||||||
|
export const moreTimeOfDay: TimeSlices[] = (() => {
|
||||||
|
return [...otherSlicesOfDay]
|
||||||
|
})();
|
||||||
export const defaultDates: DateChoice[] = [
|
export const defaultDates: DateChoice[] = [
|
||||||
{
|
{
|
||||||
literal: `${currentYear}-${currentMonth}-${currentDay}`,
|
literal: `${currentYear}-${currentMonth}-${currentDay}`,
|
||||||
|
@ -62,17 +65,17 @@ export const otherDefaultDates: DateChoice[] = [
|
||||||
{
|
{
|
||||||
literal: `${currentYear}-${currentMonth}-${currentDay}`,
|
literal: `${currentYear}-${currentMonth}-${currentDay}`,
|
||||||
date_object: new Date(),
|
date_object: new Date(),
|
||||||
timeList: otherTimeOfDay
|
timeList: defaultTimeOfDay
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
literal: `${currentYear}-${currentMonth}-${currentDay + 1}`,
|
literal: `${currentYear}-${currentMonth}-${currentDay + 1}`,
|
||||||
date_object: new Date(currentYear, currentMonth, currentDay + 1),
|
date_object: new Date(currentYear, currentMonth, currentDay + 1),
|
||||||
timeList: defaultTimeOfDay
|
timeList: otherTimeOfDay
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
literal: `${currentYear}-${currentMonth}-${currentDay + 2}`,
|
literal: `${currentYear}-${currentMonth}-${currentDay + 2}`,
|
||||||
date_object: new Date(),
|
date_object: new Date(),
|
||||||
timeList: otherTimeOfDay
|
timeList: moreTimeOfDay
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
export const defaultAnswers: PollAnswer[] = [{
|
export const defaultAnswers: PollAnswer[] = [{
|
||||||
|
|
|
@ -183,10 +183,6 @@
|
||||||
*ngIf=" 'true' === config.allowSeveralHours"
|
*ngIf=" 'true' === config.allowSeveralHours"
|
||||||
class="several-times"
|
class="several-times"
|
||||||
>
|
>
|
||||||
<pre class='debug padded warning' >
|
|
||||||
choice.timeList :
|
|
||||||
{{choice.timeList|json}}
|
|
||||||
</pre >
|
|
||||||
<h2 >Several hours</h2 >
|
<h2 >Several hours</h2 >
|
||||||
<div
|
<div
|
||||||
*ngFor="let timeItem of choice.timeList; index as idTime"
|
*ngFor="let timeItem of choice.timeList; index as idTime"
|
||||||
|
|
Loading…
Reference in New Issue