no auto send form

This commit is contained in:
Tykayn 2021-04-30 23:33:56 +02:00 committed by tykayn
parent d40aa6a3ae
commit c302663994
6 changed files with 10 additions and 9 deletions

View File

@ -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;

View File

@ -213,6 +213,8 @@ export class PollService implements Resolve<Poll> {
}
}
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;

View File

@ -63,10 +63,9 @@
</div>
<hr />
custom url:
{{ form.value.custom_url }}
</div>
custom url:
{{ form.value.custom_url }}
<hr />
<div class="columns">
<div class="column">

View File

@ -81,5 +81,5 @@
</form>
</div>
<app-success [poll]="poll"></app-success>
<!-- <app-success [poll]="poll"></app-success>-->
</div>

View File

@ -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');

View File

@ -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',