import { AuthService, RedirectService, ServerService, ThemeService } from '@app/core'
import { is18nPath } from '../../../shared/models/i18n'
import { ScreenService } from '@app/shared/misc/screen.service'
-import { debounceTime, filter, first, map, pairwise, skip, switchMap } from 'rxjs/operators'
+import { debounceTime, filter, map, pairwise } from 'rxjs/operators'
import { Hotkey, HotkeysService } from 'angular2-hotkeys'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { fromEvent } from 'rxjs'
styleUrls: [ './app.component.scss' ]
})
export class AppComponent implements OnInit {
- @ViewChild('welcomeModal', { static: false }) welcomeModal: WelcomeModalComponent
- @ViewChild('instanceConfigWarningModal', { static: false }) instanceConfigWarningModal: InstanceConfigWarningModalComponent
+ @ViewChild('welcomeModal') welcomeModal: WelcomeModalComponent
+ @ViewChild('instanceConfigWarningModal') instanceConfigWarningModal: InstanceConfigWarningModalComponent
isMenuDisplayed = true
isMenuChangedByUser = false
this.isMenuDisplayed = window.innerWidth >= 800 && !this.isMenuChangedByUser
}
- getServerVersionAndCommit () {
- return this.serverService.getServerVersionAndCommit()
- }
-
private initRouteEvents () {
let resetScroll = true
const eventsObs = this.router.events