CLASSROOMIO-T-248: add allow new user to course setting

CLASSROOMIO-T-248:Updated code based on reviews

Merge branch 'main' into CLASSROOMIO-T-248

CLASSROOMIO-T-248:Add allow new user to course setting


Co-authored-by: Ifeanyi Nwosu <ifeanyi@digdippa.com>


Merge-request: CLASSROOMIO-MR-114
Merged-by: Best Admin <best@digdippa.com>
This commit is contained in:
emmanuel
2023-10-26 21:17:58 +00:00
committed by Space Cloud
parent 6ac8cbea1c
commit 35afbf8b82
6 changed files with 30 additions and 8 deletions
@@ -40,7 +40,7 @@
let totalRatings = 0;
let startCoursePayment = false;
let isVisible = false;
let observer;
let observer: { destroy: () => void };
// initialize the expandDescription array with 'false' values for each review.
let expandDescription = Array(reviews.length).fill(false);
@@ -75,7 +75,7 @@
onMount(() => {
window.onhashchange = locationHashChanged;
const targetNode = document.querySelector('.target-component');
observer = observeIntersection(targetNode, (inView) => {
observer = observeIntersection(targetNode, (inView: boolean) => {
isVisible = inView;
});
});
@@ -132,6 +132,7 @@
onClick={() => {
startCoursePayment = true;
}}
isDisabled={!editMode && !courseData.metadata.allowNewStudent}
/>
</div>