From 2a2c19dfef7a9aa313c6ca0798f271c9a63449a9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 20 Apr 2018 14:27:30 +0200 Subject: Replace current state when changing page --- client/src/app/videos/video-list/video-local.component.ts | 2 ++ client/src/app/videos/video-list/video-recently-added.component.ts | 2 ++ client/src/app/videos/video-list/video-search.component.ts | 2 ++ client/src/app/videos/video-list/video-trending.component.ts | 2 ++ 4 files changed, 8 insertions(+) (limited to 'client/src/app/videos/video-list') diff --git a/client/src/app/videos/video-list/video-local.component.ts b/client/src/app/videos/video-list/video-local.component.ts index de6552875..fd67be67b 100644 --- a/client/src/app/videos/video-list/video-local.component.ts +++ b/client/src/app/videos/video-list/video-local.component.ts @@ -1,6 +1,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' import { immutableAssign } from '@app/shared/misc/utils' +import { Location } from '@angular/common' import { NotificationsService } from 'angular2-notifications' import { AuthService } from '../../core/auth' import { AbstractVideoList } from '../../shared/video/abstract-video-list' @@ -23,6 +24,7 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On protected route: ActivatedRoute, protected notificationsService: NotificationsService, protected authService: AuthService, + protected location: Location, private videoService: VideoService) { super() } diff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/videos/video-list/video-recently-added.component.ts index cca35d0f5..535b6e618 100644 --- a/client/src/app/videos/video-list/video-recently-added.component.ts +++ b/client/src/app/videos/video-list/video-recently-added.component.ts @@ -1,5 +1,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' +import { Location } from '@angular/common' import { immutableAssign } from '@app/shared/misc/utils' import { NotificationsService } from 'angular2-notifications' import { AuthService } from '../../core/auth' @@ -19,6 +20,7 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On constructor (protected router: Router, protected route: ActivatedRoute, + protected location: Location, protected notificationsService: NotificationsService, protected authService: AuthService, private videoService: VideoService) { diff --git a/client/src/app/videos/video-list/video-search.component.ts b/client/src/app/videos/video-list/video-search.component.ts index 46a9dd48e..774d81ed6 100644 --- a/client/src/app/videos/video-list/video-search.component.ts +++ b/client/src/app/videos/video-list/video-search.component.ts @@ -1,5 +1,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' +import { Location } from '@angular/common' import { RedirectService } from '@app/core' import { immutableAssign } from '@app/shared/misc/utils' import { NotificationsService } from 'angular2-notifications' @@ -27,6 +28,7 @@ export class VideoSearchComponent extends AbstractVideoList implements OnInit, O protected route: ActivatedRoute, protected notificationsService: NotificationsService, protected authService: AuthService, + protected location: Location, private videoService: VideoService, private redirectService: RedirectService ) { diff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/videos/video-list/video-trending.component.ts index 0c9e28216..ea65070f9 100644 --- a/client/src/app/videos/video-list/video-trending.component.ts +++ b/client/src/app/videos/video-list/video-trending.component.ts @@ -1,5 +1,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' +import { Location } from '@angular/common' import { immutableAssign } from '@app/shared/misc/utils' import { NotificationsService } from 'angular2-notifications' import { AuthService } from '../../core/auth' @@ -21,6 +22,7 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, protected route: ActivatedRoute, protected notificationsService: NotificationsService, protected authService: AuthService, + protected location: Location, private videoService: VideoService) { super() } -- cgit v1.2.3