X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp.component.ts;h=59966243b63ae02fbae0f714c1fbb835ee0ed4a3;hb=937b7a6af8f5385ca2b6454f1e1e71d9275b6ac0;hp=082d3301db14e9c71b2f610becbc7c2a837b29ae;hpb=0a9131f9615e0aa26ec26c1739fce3aca9fca43f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 082d3301d..59966243b 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -4,7 +4,7 @@ import { Event, GuardsCheckStart, NavigationEnd, Router, Scroll } from '@angular 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' @@ -25,8 +25,8 @@ import { InstanceService } from '@app/shared/instance/instance.service' 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