From f471fe62eae2b2b72b971b88f6fad38cc0be1342 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 13 Sep 2018 11:28:31 -0400 Subject: [PATCH] Revert "remove swal hack again" This reverts commit f19aa96f3eff7cc3ca758cbf181e92e48606e58d. --- src/app/app.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 72928425dc..e56fe77cb5 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,5 +1,6 @@ import * as jq from 'jquery'; -import swal from 'sweetalert'; +import * as _swal from 'sweetalert'; +import { SweetAlert } from 'sweetalert/typings/core'; import { ToasterConfig, @@ -44,6 +45,8 @@ import { ConstantsService } from 'jslib/services/constants.service'; import { RouterService } from './services/router.service'; const BroadcasterSubscriptionId = 'AppComponent'; +// Hack due to Angular 5.2 bug +const swal: SweetAlert = _swal as any; const IdleTimeout = 60000 * 10; // 10 minutes @Component({