From b8539c4064e957eee6bb981e6e9ec45a9b1b171e Mon Sep 17 00:00:00 2001
From: Brooke
Date: Wed, 28 Dec 2022 08:58:17 -0800
Subject: [PATCH 1/2] TCA-851 #comment This commit reloads the page when the
user is redirected to the account settings # time 15m
---
.../learn/course-details/course-curriculum/CourseCurriculum.tsx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx b/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx
index c6ee2a0a5..605b062f6 100644
--- a/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx
+++ b/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx
@@ -175,6 +175,8 @@ const CourseCurriculum: FC = (props: CourseCurriculumProp
function onDiceModalClose(): void {
setIsDiceModalOpen(false)
+ // reload the page so we refresh the DICE ID status
+ window.location.reload()
}
return (
From b8824724057bfa781dc9b75c64205d153fa29ace Mon Sep 17 00:00:00 2001
From: Brooke
Date: Wed, 28 Dec 2022 09:03:45 -0800
Subject: [PATCH 2/2] TCA-851 wait to refresh the page when the user has
completed the config changes
---
.../course-curriculum/CourseCurriculum.tsx | 2 --
.../course-curriculum/dice-modal/DiceModal.tsx | 13 ++++++++++++-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx b/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx
index 605b062f6..c6ee2a0a5 100644
--- a/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx
+++ b/src-ts/tools/learn/course-details/course-curriculum/CourseCurriculum.tsx
@@ -175,8 +175,6 @@ const CourseCurriculum: FC = (props: CourseCurriculumProp
function onDiceModalClose(): void {
setIsDiceModalOpen(false)
- // reload the page so we refresh the DICE ID status
- window.location.reload()
}
return (
diff --git a/src-ts/tools/learn/course-details/course-curriculum/dice-modal/DiceModal.tsx b/src-ts/tools/learn/course-details/course-curriculum/dice-modal/DiceModal.tsx
index f580e189b..b4e7d88c5 100644
--- a/src-ts/tools/learn/course-details/course-curriculum/dice-modal/DiceModal.tsx
+++ b/src-ts/tools/learn/course-details/course-curriculum/dice-modal/DiceModal.tsx
@@ -39,11 +39,22 @@ const DiceModal: FC = (props: DiceModalProps) => {
+
+ When you have completed configuring your account,
+ click below to refresh your settings.
+
+
+
+