From bfdb18b316ffaf614b58a33ebdb195d1e793cc0a Mon Sep 17 00:00:00 2001
From: Tykayn
Date: Fri, 30 Apr 2021 16:00:22 +0200
Subject: [PATCH] update url to copy after creation
---
src/app/core/models/poll.model.ts | 1 +
.../administration/form/form.component.html | 4 ++--
.../success/success.component.html | 16 +++++++++-------
.../administration/success/success.component.ts | 1 +
4 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/app/core/models/poll.model.ts b/src/app/core/models/poll.model.ts
index cc940ff2..4a797788 100644
--- a/src/app/core/models/poll.model.ts
+++ b/src/app/core/models/poll.model.ts
@@ -16,6 +16,7 @@ export class Poll {
public default_expiracy_days_from_now = 60;
+ public admin_key: string;
public kind: string;
public description?: string;
diff --git a/src/app/features/administration/form/form.component.html b/src/app/features/administration/form/form.component.html
index 6be19904..581348a4 100644
--- a/src/app/features/administration/form/form.component.html
+++ b/src/app/features/administration/form/form.component.html
@@ -1,6 +1,4 @@
+
+
diff --git a/src/app/features/administration/success/success.component.html b/src/app/features/administration/success/success.component.html
index 56d6c98a..e47e1598 100644
--- a/src/app/features/administration/success/success.component.html
+++ b/src/app/features/administration/success/success.component.html
@@ -30,10 +30,8 @@
Pour accéder au sondage et à tous ses paramètres :
{{ poll.custom_url }}
-
-
+
+
Voir le sondage coté administrateur·ice
@@ -45,10 +43,14 @@
{{ 'resume.users' | translate }}
Pour accéder au sondage :
- {{ poll.custom_url }}
+ {{ window.location.href + 'poll/' + poll.custom_url + 'consultation' }}
+
-
-
+
+
Voir le sondage
diff --git a/src/app/features/administration/success/success.component.ts b/src/app/features/administration/success/success.component.ts
index 5d9a0d1a..6dcb2d5d 100644
--- a/src/app/features/administration/success/success.component.ts
+++ b/src/app/features/administration/success/success.component.ts
@@ -10,6 +10,7 @@ import { Poll } from '../../../core/models/poll.model';
export class SuccessComponent implements OnInit {
@Input() poll: Poll;
mailToRecieve: string;
+ window: any = window;
constructor(private pollService: PollService) {}