Skip to content

Commit ac3eb96

Browse files
committed
fix ssh domain displaying
1 parent 81fa416 commit ac3eb96

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/FormPage.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ const StepOne = ({ setFormData, defaultFormData }) => {
117117
return match ? match[1] : null;
118118
}
119119

120-
const extractedName = extractName(appConfig.postUrl);
121-
const formattedName = extractedName ? `--${extractedName}` : "";
120+
// const extractedName = extractName(appConfig.postUrl);
121+
// const formattedName = extractedName ? `--${extractedName}` : "";
122+
const formattedName = defaultFormData.sshName;
122123

123124
return (
124125
<div className="form-wrap">
@@ -170,7 +171,9 @@ const StepOne = ({ setFormData, defaultFormData }) => {
170171
id="sshCheckBox"
171172
init={checkSsh}
172173
>
173-
Connection will be available at jovyan@jupyter-{appConfig.userName}{formattedName}.dyn.cloud.e-infra.cz
174+
<div>Connection will be available at {formattedName}</div>
175+
<div style={{ fontSize: '12px' }}>In the notebooks, the name is stored as environment variable SSH_ADDRESS</div>
176+
174177
</SliderCheckBox>
175178
</div>
176179
);

src/scripts/gatherFormData.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ export function gatherFormData() {
183183
projectDirectories: getProjectSelection(),
184184
persistentHome: getPersistentHomeSelection(),
185185
s3Storage: getS3StorageSelection(),
186-
notebookImage: getNotebookImageSelection()
186+
notebookImage: getNotebookImageSelection(),
187+
sshName: document.getElementById('sshname').value,
187188
};
188189
console.log('defaultFormData:', formData);
189190

0 commit comments

Comments
 (0)