import { Hotkey, HotkeysService } from 'angular2-hotkeys'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { fromEvent } from 'rxjs'
-import { ViewportScroller } from '@angular/common'
+import { PlatformLocation, ViewportScroller } from '@angular/common'
import { PluginService } from '@app/core/plugins/plugin.service'
import { HooksService } from '@app/core/plugins/hooks.service'
+import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
@Component({
selector: 'my-app',
private screenService: ScreenService,
private hotkeysService: HotkeysService,
private themeService: ThemeService,
- private hooks: HooksService
+ private hooks: HooksService,
+ private location: PlatformLocation,
+ private modalService: NgbModal
) { }
get serverVersion () {
fromEvent(window, 'resize')
.pipe(debounceTime(200))
.subscribe(() => this.onResize())
+
+ this.location.onPopState(() => this.modalService.dismissAll())
}
isUserLoggedIn () {