From 6ea6bddc5e455c2a19e61b03d6ad04ffe80dc7d8 Mon Sep 17 00:00:00 2001 From: moritzrengert Date: Thu, 25 May 2023 21:46:19 +0200 Subject: [PATCH] feat: copy link to clipboard and toast success, open preview in new tab --- .../[environmentId]/surveys/SurveyList.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx b/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx index d42a506e1f..37e4df3139 100644 --- a/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx +++ b/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx @@ -225,21 +225,23 @@ export default function SurveysList({ environmentId }) { {survey.type === "link" && ( <> - + href={`${window.location.protocol}//${window.location.host}/s/${survey.id}?preview=true`} + target="_blank"> Preview Survey - +