Merge branch 'feature/reference-id'
This commit is contained in:
commit
240c576bad
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 7f6d7424e77bccd68b63506b1205ef0dfa7c21bd
|
||||
Subproject commit 57ace4084556758fdc2989cf1a8cf6a5d1736a29
|
|
@ -77,6 +77,14 @@ export class RegisterComponent extends BaseRegisterComponent {
|
|||
if (qParams.layout != null) {
|
||||
this.layout = qParams.layout;
|
||||
}
|
||||
if (qParams.reference != null) {
|
||||
this.referenceId = qParams.reference;
|
||||
} else {
|
||||
this.referenceId = ('; ' + document.cookie).split('; reference=').pop().split(';').shift();
|
||||
}
|
||||
if (this.referenceId === '') {
|
||||
this.referenceId = null;
|
||||
}
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@ import { ActivatedRoute } from '@angular/router';
|
|||
|
||||
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
|
||||
|
||||
import { UserService } from 'jslib/abstractions/user.service';
|
||||
import { EnvironmentService } from 'jslib/abstractions/environment.service';
|
||||
import { UserService } from 'jslib/abstractions/user.service';
|
||||
|
||||
import { Organization } from 'jslib/models/domain/organization';
|
||||
|
||||
|
|
Loading…
Reference in New Issue