Skip to content

Commit

Permalink
Moved redirects to app service hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed Feb 21, 2017
1 parent f6d03b2 commit 035c030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/Libs/Vidyano/vidyano.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1599,14 +1599,6 @@ namespace Vidyano {
// Noop
}

onRedirectToSignIn(keepUrl: boolean = true) {
// Noop
}

onRedirectToSignOut(keepUrl: boolean = true) {
// Noop
}

onConstructPersistentObject(service: Service, po: any): PersistentObject {
return new PersistentObject(service, po);
}
Expand Down
4 changes: 2 additions & 2 deletions src/WebComponents/App/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,11 @@ namespace Vidyano.WebComponents {
}

redirectToSignIn(keepUrl: boolean = true) {
this.app.service.hooks.onRedirectToSignIn(keepUrl);
(<AppServiceHooks>this.app.service.hooks).onRedirectToSignIn(keepUrl);
}

redirectToSignOut(keepUrl: boolean = true) {
this.app.service.hooks.onRedirectToSignOut(keepUrl);
(<AppServiceHooks>this.app.service.hooks).onRedirectToSignOut(keepUrl);
}

async showDialog(dialog: Dialog): Promise<any> {
Expand Down

0 comments on commit 035c030

Please sign in to comment.