From 035c030d846d44d4b0f427758e18559f2766da46 Mon Sep 17 00:00:00 2001 From: David Sleeckx Date: Tue, 21 Feb 2017 14:26:53 +0100 Subject: [PATCH] Moved redirects to app service hooks --- src/Libs/Vidyano/vidyano.ts | 8 -------- src/WebComponents/App/app.ts | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Libs/Vidyano/vidyano.ts b/src/Libs/Vidyano/vidyano.ts index 8ef13c9d..5cae7820 100644 --- a/src/Libs/Vidyano/vidyano.ts +++ b/src/Libs/Vidyano/vidyano.ts @@ -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); } diff --git a/src/WebComponents/App/app.ts b/src/WebComponents/App/app.ts index 7a090b0e..5d5e3bed 100644 --- a/src/WebComponents/App/app.ts +++ b/src/WebComponents/App/app.ts @@ -429,11 +429,11 @@ namespace Vidyano.WebComponents { } redirectToSignIn(keepUrl: boolean = true) { - this.app.service.hooks.onRedirectToSignIn(keepUrl); + (this.app.service.hooks).onRedirectToSignIn(keepUrl); } redirectToSignOut(keepUrl: boolean = true) { - this.app.service.hooks.onRedirectToSignOut(keepUrl); + (this.app.service.hooks).onRedirectToSignOut(keepUrl); } async showDialog(dialog: Dialog): Promise {