CLASSROOMIO-T-29: Limit org to one

Co-authored-by: Rotimi Best <rotimiibitoyeemma@gmail.com>

Merge-request: CLASSROOMIO-MR-4
Merged-by: Digdippa Team <digdippa@gmail.com>
This commit is contained in:
Rotimi Best
2023-04-22 20:00:37 +00:00
committed by Space Cloud
co-authored by Rotimi Best
parent ae0462219b
commit cfeaa17846
9 changed files with 76 additions and 49 deletions
+4 -1
View File
@@ -97,7 +97,10 @@
// If user coming to login page, then
if (_.isEmpty(orgRes.orgs)) {
goto(ROUTE.ONBOARDING);
} else if (['login', 'signup', 'onboarding'].includes(path)) {
} else if (
['login', 'signup', 'onboarding'].includes(path) ||
path === '' // for home page
) {
// By default redirect to first organization
goto(`/org/${orgRes.currentOrg.siteName}`);
}
-7
View File
@@ -80,10 +80,3 @@
<Courses />
</div>
</section>
<style>
.root {
width: 100%;
padding: 0 10px;
}
</style>