add timeout to swal alerts

This commit is contained in:
Kyle Spearrin 2018-04-14 09:39:47 -04:00
parent 4a028376e4
commit 82dd5b8b08
3 changed files with 3 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 5608f119252ca29ddae8fe98599efd27f7922a2e
Subproject commit e883dfdaac6b475d032bac9be6aca7cd18d70861

View File

@ -181,6 +181,7 @@ export class AppComponent implements OnInit {
const confirmed = await swal({
content: { element: contentDiv },
buttons: buttons,
timer: 300000, // 5 minute timeout
});
this.messagingService.send('showDialogResolve', {

View File

@ -18,7 +18,7 @@ const AnalyticsIds = {
[DeviceType.Safari]: 'UA-81915606-16',
};
const DialogPromiseExpiration = 3600000; // 1 hour
const DialogPromiseExpiration = 600000; // 10 minutes
export default class BrowserPlatformUtilsService implements PlatformUtilsService {
static getDomain(uriString: string): string {