forked from tykayn/funky-framadate-front
no auto send form
This commit is contained in:
parent
d40aa6a3ae
commit
c302663994
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -63,10 +63,9 @@
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
</div>
|
||||
custom url:
|
||||
{{ form.value.custom_url }}
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
|
@ -81,5 +81,5 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<app-success [poll]="poll"></app-success>
|
||||
<!-- <app-success [poll]="poll"></app-success>-->
|
||||
</div>
|
||||
|
@ -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');
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user