mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
env to allow multi date span per day
This commit is contained in:
parent
c799bea900
commit
e35f4f06d7
@ -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[] = [];
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -38,6 +38,7 @@ export const environment = {
|
||||
production: false,
|
||||
showDemoWarning: false,
|
||||
showStepperShortcuts: false,
|
||||
enable_several_hours: false,
|
||||
|
||||
api: endpoints,
|
||||
poll: poll_conf,
|
||||
|
Loading…
Reference in New Issue
Block a user