From cba17c30e6077eeedfc372086d62dd792464be2a Mon Sep 17 00:00:00 2001
From: William Enright <william.enright@savoirfairelinux.com>
Date: Thu, 20 Aug 2020 14:01:48 -0400
Subject: [PATCH] Corrections to strings in setup wizard, domain name is now
 prefilled

Change-Id: I775313d46286f8e438ff3282fbed5e096e94514d
---
 .../src/components/CustomizedSteppers/CustomizedSteppers.js     | 2 +-
 .../src/components/ServerParameters/ServerParameters.js         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/jams-react-client/src/components/CustomizedSteppers/CustomizedSteppers.js b/jams-react-client/src/components/CustomizedSteppers/CustomizedSteppers.js
index 9bbb31db..cfe33d53 100644
--- a/jams-react-client/src/components/CustomizedSteppers/CustomizedSteppers.js
+++ b/jams-react-client/src/components/CustomizedSteppers/CustomizedSteppers.js
@@ -137,7 +137,7 @@ const useStyles = makeStyles((theme) => ({
 }));
 
 function getSteps() {
-  return ['Create admin', 'CA Setup', 'Identity Management', 'Server parameters'];
+  return ['Create Administrator User', 'Certificate Authority Setup', 'Identity Management', 'Server Parameters'];
 }
 
 export default function CustomizedSteppers(props) {
diff --git a/jams-react-client/src/components/ServerParameters/ServerParameters.js b/jams-react-client/src/components/ServerParameters/ServerParameters.js
index fdb7ff6c..209b7d53 100644
--- a/jams-react-client/src/components/ServerParameters/ServerParameters.js
+++ b/jams-react-client/src/components/ServerParameters/ServerParameters.js
@@ -41,7 +41,7 @@ const useStyles = makeStyles((theme) => ({
 export default function ServerParameters(props) {
 
     // Formik validation fields
-    const initialValues = {domain: ""};
+    const initialValues = {domain: window.location.origin };
     const validationSchema = Yup.object().shape({
         domain: Yup.string()
             .required("Domain is required."),
-- 
GitLab