Skip to content
Snippets Groups Projects
Commit cde0835d authored by paf's avatar paf
Browse files

fix bug from shift of iqb-components version

parent 5d614a29
No related branches found
No related tags found
No related merge requests found
Pipeline #18962 failed
...@@ -19,6 +19,7 @@ import { BackendService } from '../../backend.service'; ...@@ -19,6 +19,7 @@ import { BackendService } from '../../backend.service';
export class LoginComponent implements OnInit, OnDestroy { export class LoginComponent implements OnInit, OnDestroy {
static oldLoginName = ''; static oldLoginName = '';
private routingSubscription: Subscription = null; private routingSubscription: Subscription = null;
private systemAnnouncementSubscription: Subscription = null;
returnTo = ''; returnTo = '';
problemText = ''; problemText = '';
showPassword = false; showPassword = false;
...@@ -40,12 +41,10 @@ export class LoginComponent implements OnInit, OnDestroy { ...@@ -40,12 +41,10 @@ export class LoginComponent implements OnInit, OnDestroy {
ngOnInit(): void { ngOnInit(): void {
this.mds.setSpinnerOff(); this.mds.setSpinnerOff();
this.routingSubscription = this.route.params.subscribe(params => { this.routingSubscription = this.route.params
this.returnTo = params.returnTo; .subscribe(params => { this.returnTo = params.returnTo; });
}); this.systemAnnouncementSubscription = <Subscription> this.cts.getCustomText$('system_announcement')
setTimeout(() => { // the timeout is avery temporary fix.- after upgrading to iqb-components 3, it can be removed .subscribe(text => { this.systemAnnouncement = text || '-'; });
this.systemAnnouncement = this.cts.getCustomText('system_announcement', '-');
}, 500);
} }
login(): void { login(): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment