env to allow multi date span per day

This commit is contained in:
Tykayn 2021-12-21 15:06:40 +01:00 committed by tykayn
parent c799bea900
commit e35f4f06d7
4 changed files with 7 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export class PollService implements Resolve<Poll> {
public showDateInterval = false;
public allowSeveralHours = false;
public richTextMode = false;
public mode_calendar = true;
public mode_calendar = false;
public calendar: Date[] = [new Date()];
public disabled_dates: Date[] = [];

View File

@ -25,8 +25,10 @@
</div>
<div class="text-date-list" *ngIf="!pollService.mode_calendar">
<app-day-list [form]="pollService.form"></app-day-list>
<!-- [hasSeveralHours]="pollService.form.value.hasSeveralHours"-->
<app-day-list
[form]="pollService.form"
[hasSeveralHours]="environment.enable_several_hours && pollService.form.value.hasSeveralHours"
></app-day-list>
</div>
</div>
<app-nav-steps

View File

@ -14,6 +14,7 @@ export class StepThreeComponent implements OnInit {
step_max: any;
@Input()
form: any;
public environment = environment;
constructor(public pollService: PollService, private titleService: Title) {
this.pollService.step_current = 3;

View File

@ -38,6 +38,7 @@ export const environment = {
production: false,
showDemoWarning: false,
showStepperShortcuts: false,
enable_several_hours: false,
api: endpoints,
poll: poll_conf,