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/account/account-videos/account-videos.component.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/app/account/account-videos/account-videos.component.ts') diff --git a/client/src/app/account/account-videos/account-videos.component.ts b/client/src/app/account/account-videos/account-videos.component.ts index 07f5b7f0b..91bc1b695 100644 --- a/client/src/app/account/account-videos/account-videos.component.ts +++ b/client/src/app/account/account-videos/account-videos.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit, OnDestroy } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' +import { Location } from '@angular/common' import { immutableAssign } from '@app/shared/misc/utils' import { ComponentPagination } from '@app/shared/rest/component-pagination.model' import { NotificationsService } from 'angular2-notifications' @@ -35,6 +36,7 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, protected authService: AuthService, protected notificationsService: NotificationsService, protected confirmService: ConfirmService, + protected location: Location, private videoService: VideoService) { super() } -- cgit v1.2.3