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 is_zero_knowledge?: boolean = false;
public allow_comments?: boolean = true; public allow_comments?: boolean = true;
public allowComments?: boolean = true; public allowComments?: boolean = true;
public has_several_hours?: boolean = false; public has_several_hours?: boolean = false;
public hasSeveralHours?: boolean = false;
public allowSeveralHours?: boolean; public allowSeveralHours?: boolean;

View File

@ -213,6 +213,8 @@ export class PollService implements Resolve<Poll> {
} }
} }
newpoll.description = form.value.description; 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.max_count_of_answers = form.value.allowComments;
newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers; newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers;
newpoll.password = form.value.password; newpoll.password = form.value.password;

View File

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

View File

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

View File

@ -8,15 +8,13 @@ import { environment } from 'src/environments/environment';
templateUrl: './success.component.html', templateUrl: './success.component.html',
styleUrls: ['./success.component.scss'], styleUrls: ['./success.component.scss'],
}) })
export class SuccessComponent implements OnInit { export class SuccessComponent {
@Input() poll: Poll; @Input() poll: Poll;
mailToRecieve: string; mailToRecieve: string;
window: any = window; window: any = window;
environment = environment; environment = environment;
constructor(private pollService: PollService) {} constructor(public pollService: PollService) {}
ngOnInit(): void {}
sendToEmail() { sendToEmail() {
alert('todo'); alert('todo');

View File

@ -22,7 +22,7 @@ export const environment = {
production: false, production: false,
display_routes: true, display_routes: true,
autofill: true, autofill: true,
autoSendNewPoll: true, autoSendNewPoll: false,
appTitle: 'FramaDate Funky', appTitle: 'FramaDate Funky',
appVersion: '2.1.0', appVersion: '2.1.0',
appLogo: 'assets/img/logo.png', appLogo: 'assets/img/logo.png',