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 showDateInterval = false;
public allowSeveralHours = false; public allowSeveralHours = false;
public richTextMode = false; public richTextMode = false;
public mode_calendar = true; public mode_calendar = false;
public calendar: Date[] = [new Date()]; public calendar: Date[] = [new Date()];
public disabled_dates: Date[] = []; public disabled_dates: Date[] = [];

View File

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

View File

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

View File

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