diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.html b/src/app/features/administration/form/steps/step-one/step-one.component.html index e7a5e19e..658284f9 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.html +++ b/src/app/features/administration/form/steps/step-one/step-one.component.html @@ -43,10 +43,12 @@ >
- {{ pollService.form.value.description.length }} / 300 caractères maximum + + {{ pollService.form.value.description.length }} / + + 300 caractères maximum
@@ -72,13 +74,8 @@
+
- -
-
- diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.ts b/src/app/features/administration/form/steps/step-one/step-one.component.ts index 8b295c71..3ce8b060 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.ts +++ b/src/app/features/administration/form/steps/step-one/step-one.component.ts @@ -34,16 +34,6 @@ export class StepOneComponent implements OnInit { } } - cancelCreationDialog() { - this.confirmationService.confirm({ - message: 'Quitter la création de sondage?', - accept: this.leave, - reject: (event: any) => { - console.log('event', event); - }, - }); - } - leave(event: any) { console.log('event', event); if (event) { diff --git a/src/app/features/administration/form/steps/step-two/step-two.component.html b/src/app/features/administration/form/steps/step-two/step-two.component.html index 6fab7cc3..f3a5522b 100644 --- a/src/app/features/administration/form/steps/step-two/step-two.component.html +++ b/src/app/features/administration/form/steps/step-two/step-two.component.html @@ -12,8 +12,7 @@
@@ -28,8 +27,7 @@
diff --git a/src/app/features/administration/stepper/stepper.component.html b/src/app/features/administration/stepper/stepper.component.html index 4cc1a36e..5731f450 100644 --- a/src/app/features/administration/stepper/stepper.component.html +++ b/src/app/features/administration/stepper/stepper.component.html @@ -62,7 +62,7 @@

Étape {{ step_current }} sur {{ step_max }}

@@ -81,7 +81,7 @@ pButton icon="pi pi-times" [label]="'dialogs.no' | translate" - (click)="stepperConfirm.reject()" + (click)="stepperConfirm.close()" > - diff --git a/src/app/features/administration/stepper/stepper.component.ts b/src/app/features/administration/stepper/stepper.component.ts index eadbc5a0..932ce04d 100644 --- a/src/app/features/administration/stepper/stepper.component.ts +++ b/src/app/features/administration/stepper/stepper.component.ts @@ -22,9 +22,11 @@ export class StepperComponent { private router: Router ) {} - cancelDialog() { + showCancelDialog() { this.confirmationService.confirm({ message: 'Quitter la création de sondage?', + header: "Retour à l' accueil", + reject: () => {}, accept: () => { this.router.navigate(['/']); },