forked from tykayn/funky-framadate-front
disdouble cancel creation
This commit is contained in:
parent
14691db58b
commit
61214b5e0d
@ -67,21 +67,15 @@
|
||||
type="button"
|
||||
pButton
|
||||
icon="pi pi-times"
|
||||
[label]="'dialogs.no' | translate"
|
||||
[value]="'dialogs.no' | translate"
|
||||
(click)="cd.reject()"
|
||||
></button>
|
||||
<button
|
||||
type="button"
|
||||
pButton
|
||||
icon="pi pi-check"
|
||||
[label]="'dialogs.yes' | translate"
|
||||
(click)="cd.accept()"
|
||||
></button>
|
||||
<button type="button" icon="pi pi-check" [value]="'dialogs.yes' | translate" (click)="cd.accept()"></button>
|
||||
</ng-template>
|
||||
</p-confirmDialog>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<button pButton class="button is-warning is-fullwidth" (click)="cancelCreationDialog()">
|
||||
<button class="button is-warning is-fullwidth" (click)="cancelCreationDialog()">
|
||||
{{ 'SENTENCES.Cancel' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
|
@ -35,7 +35,8 @@ export class StepOneComponent implements OnInit {
|
||||
cancelCreationDialog() {
|
||||
this.confirmationService.confirm({
|
||||
message: 'Quitter la création de sondage?',
|
||||
accept: () => {
|
||||
accept: (event: any) => {
|
||||
event.preventDefault();
|
||||
this.router.navigate(['/']);
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user