env update for dev

This commit is contained in:
Tykayn 2021-11-22 10:15:11 +01:00 committed by tykayn
parent 2e8a1aa12b
commit 684d710003
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { PollService } from '../../../../../core/services/poll.service'; import { PollService } from '../../../../../core/services/poll.service';
import { ApiService } from '../../../../../core/services/api.service'; import { ApiService } from '../../../../../core/services/api.service';
import { environment } from '../../../../../../environments/environment';
@Component({ @Component({
selector: 'app-step-five', selector: 'app-step-five',
@ -12,7 +13,7 @@ export class StepFiveComponent implements OnInit {
@Input() step_max: any; @Input() step_max: any;
@Input() public form: FormGroup; @Input() public form: FormGroup;
poll: any; poll: any;
advancedDisplayEnabled = true; advancedDisplayEnabled = environment.advanced_options_display;
constructor(public pollService: PollService) { constructor(public pollService: PollService) {
this.pollService.step_current = 5; this.pollService.step_current = 5;
} }

View File

@ -10,7 +10,7 @@ endpoints.baseHref = apiV1.baseHref;
export const environment = { export const environment = {
frontDomain: 'http://127.0.0.1:4200', frontDomain: 'http://127.0.0.1:4200',
production: false, production: false,
display_routes: false, // demo paths to test polls display_routes: true, // demo paths to test polls
autofill_creation: true, autofill_creation: true,
advanced_options_display: false, advanced_options_display: false,
autofill_participation: false, autofill_participation: false,