diff --git a/src/app/core/models/poll.model.ts b/src/app/core/models/poll.model.ts index 358b3acc..18032a65 100644 --- a/src/app/core/models/poll.model.ts +++ b/src/app/core/models/poll.model.ts @@ -34,7 +34,9 @@ export class Poll { public is_zero_knowledge?: boolean = false; public allow_comments?: boolean = true; public allowComments?: boolean = true; + public has_several_hours?: boolean = false; + public hasSeveralHours?: boolean = false; public allowSeveralHours?: boolean; diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index 73163d38..983bcfe7 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -213,6 +213,8 @@ export class PollService implements Resolve { } } newpoll.description = form.value.description; + newpoll.has_several_hours = form.value.hasSeveralHours; + newpoll.hasSeveralHours = form.value.hasSeveralHours; newpoll.max_count_of_answers = form.value.allowComments; newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers; newpoll.password = form.value.password; diff --git a/src/app/features/administration/form/base-config/base-config.component.html b/src/app/features/administration/form/base-config/base-config.component.html index a898a25d..92c2817a 100644 --- a/src/app/features/administration/form/base-config/base-config.component.html +++ b/src/app/features/administration/form/base-config/base-config.component.html @@ -63,10 +63,9 @@
- custom url: - {{ form.value.custom_url }} - + custom url: + {{ form.value.custom_url }}
diff --git a/src/app/features/administration/form/form.component.html b/src/app/features/administration/form/form.component.html index d8a4f7d1..a1b71fcf 100644 --- a/src/app/features/administration/form/form.component.html +++ b/src/app/features/administration/form/form.component.html @@ -81,5 +81,5 @@
- +
diff --git a/src/app/features/administration/success/success.component.ts b/src/app/features/administration/success/success.component.ts index 28da08fb..6e76549a 100644 --- a/src/app/features/administration/success/success.component.ts +++ b/src/app/features/administration/success/success.component.ts @@ -8,15 +8,13 @@ import { environment } from 'src/environments/environment'; templateUrl: './success.component.html', styleUrls: ['./success.component.scss'], }) -export class SuccessComponent implements OnInit { +export class SuccessComponent { @Input() poll: Poll; mailToRecieve: string; window: any = window; environment = environment; - constructor(private pollService: PollService) {} - - ngOnInit(): void {} + constructor(public pollService: PollService) {} sendToEmail() { alert('todo'); diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 3e43f6db..cbdcb6ad 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -22,7 +22,7 @@ export const environment = { production: false, display_routes: true, autofill: true, - autoSendNewPoll: true, + autoSendNewPoll: false, appTitle: 'FramaDate Funky', appVersion: '2.1.0', appLogo: 'assets/img/logo.png',