Skip to content

Commit b882472

Browse files
TCA-851 wait to refresh the page when the user has completed the config changes
1 parent b8539c4 commit b882472

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ const CourseCurriculum: FC<CourseCurriculumProps> = (props: CourseCurriculumProp
175175

176176
function onDiceModalClose(): void {
177177
setIsDiceModalOpen(false)
178-
// reload the page so we refresh the DICE ID status
179-
window.location.reload()
180178
}
181179

182180
return (

src-ts/tools/learn/course-details/course-curriculum/dice-modal/DiceModal.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,22 @@ const DiceModal: FC<DiceModalProps> = (props: DiceModalProps) => {
3939
<Button
4040
buttonStyle='primary'
4141
label='Account Settings'
42-
onClick={props.onClose}
4342
target='_blank'
4443
url={EnvironmentConfig.TOPCODER_URLS.ACCOUNT_SETTINGS}
4544
/>
4645
</p>
46+
<p>
47+
When you have completed configuring your account,
48+
click below to refresh your settings.
49+
</p>
50+
<p className={styles.buttonContainer}>
51+
<Button
52+
buttonStyle='secondary'
53+
label='Refresh Settings'
54+
onClick={props.onClose}
55+
url={window.location.href}
56+
/>
57+
</p>
4758
</div>
4859

4960
</BaseModal>

0 commit comments

Comments
 (0)