Skip to content

Commit

Permalink
Merge pull request #142 from sunbird-cb/onboarding
Browse files Browse the repository at this point in the history
Onboarding
  • Loading branch information
christyfernandes authored Jul 1, 2022
2 parents 8c701e1 + b50622b commit 6c9c4b1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2>Organization information</h2>
</mat-sidenav-container>


<div class="footer_box flex flex-row justify-between">
<div class="footer_box flex flex-row justify-between" *ngIf="router.url!='/app/setup/welcome'">
<!-- <a class="skip_link mat-body-2 margin-remove-bottom">Cancel</a> -->

<ng-container *ngIf="previous && previous !== 'first'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,7 @@ background-color: #F0F3F4!important;
.theme-igot.day-mode .mat-drawer-container {
background-color: #f0f3f4!important;
}

::ng-deep ws-app-footer {
display: none!important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
.welcome-mat-card {
padding:48px 48px!important;
}
.footer_box {
display: none!important;
}
7 changes: 7 additions & 0 deletions src/app/services/init.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@ export class InitService {

this.configSvc.userGroups = new Set(details.group)
this.configSvc.userRoles = new Set((details.roles || []).map((v: string) => v.toLowerCase()))

// This is for showing side menu based on loggged in user's root org
// since we dont have new role for such users, we'll add a role 'isInstuteOrg'
// so that this role check can be used to show side menu items based on this condition
if (completeProdata.rootOrg && completeProdata.rootOrg.isInstitute) {
this.configSvc.userRoles.add('isInstuteOrg')
}
return details
} catch (e) {
this.configSvc.userProfile = null
Expand Down

0 comments on commit 6c9c4b1

Please sign in to comment.