mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
🐛 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[] = (() => {
|
||||
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[] = [{
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user