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