mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2904] Search - redirect breaks application (#3268)
* set navigation commands over plain string * fix test * lint
This commit is contained in:
committed by
Eugenio Romano
parent
c90ad3f875
commit
d456b3cba1
@@ -21,14 +21,14 @@ import { RedirectionModel } from '../models/redirection.model';
|
||||
|
||||
// TODO: should be extending AuthenticationService
|
||||
export class AuthenticationMock /*extends AuthenticationService*/ {
|
||||
private redirectUrl: RedirectionModel = null;
|
||||
private redirect: RedirectionModel = null;
|
||||
|
||||
setRedirectUrl(url: RedirectionModel) {
|
||||
this.redirectUrl = url;
|
||||
this.redirect = url;
|
||||
}
|
||||
|
||||
getRedirectUrl(): string {
|
||||
return this.redirectUrl ? this.redirectUrl.url : null;
|
||||
getRedirectUrl(): any[] {
|
||||
return this.redirect ? this.redirect.navigation : null;
|
||||
}
|
||||
|
||||
// TODO: real auth service returns Observable<string>
|
||||
|
Reference in New Issue
Block a user