Change ol to ul in error message of role verifcation and fix a bug with toggle item with no subitems in sidebar

This commit is contained in:
Konstantinos Triantafyllou 2022-12-10 01:56:56 +02:00
parent 2492f737b8
commit 4afcb8f27f
2 changed files with 8 additions and 5 deletions

View File

@ -25,7 +25,9 @@ export class SideBarComponent implements AfterViewInit {
ngAfterViewInit() {
if(this.nav) {
setTimeout(() => {
UIkit.nav(this.nav.nativeElement).toggle(this.activeIndex, true);
if(this.items[this.activeIndex].items.length > 0) {
UIkit.nav(this.nav.nativeElement).toggle(this.activeIndex, true);
}
});
}
}

View File

@ -63,11 +63,11 @@ import {Composer} from "../utils/email/composer";
<modal-alert #errorModal (alertOutput)="cancel()" [overflowBody]="false">
<div>
We are unable to process the request. What happened?
<ol>
<ul class="uk-margin-top uk-list uk-list-circle uk-list-primary">
<li>You are logged in with <a [routerLink]="[userInfoLinkPrefix + '/user-info']" (click)="errorModal.cancel()">a different email</a>, than the one you have received the invitation.</li>
<li>The invitation has been canceled.</li>
<li>The URL is invalid.</li>
</ol>
</ul>
</div>
</modal-alert>
`
@ -133,11 +133,12 @@ export class RoleVerificationComponent implements OnInit, OnDestroy, AfterViewIn
this.openErrorModal();
}));
} else {
this.router.navigate(['/user-info'], {
this.router.navigate(['user-info'], {
queryParams: {
'errorCode': LoginErrorCodes.NOT_LOGIN,
'redirectUrl': this.router.url
}
},
relativeTo: this.route
});
}
}