diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 11:21:45 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 11:21:45 +0200 |
commit | 9aa46b0c7bade696a477626ad7590ffdd281e03c (patch) | |
tree | 9c12ff581c7b95ecc134d42bcb4a54ee4254ab95 /client/src/app/shared/search/search.service.ts | |
parent | e105c19c8ebe56b6828ba82948895ad0ca71d8c2 (diff) | |
download | PeerTube-9aa46b0c7bade696a477626ad7590ffdd281e03c.tar.gz PeerTube-9aa46b0c7bade696a477626ad7590ffdd281e03c.tar.zst PeerTube-9aa46b0c7bade696a477626ad7590ffdd281e03c.zip |
Client: navigate to /videos/list when do search on another page
Diffstat (limited to 'client/src/app/shared/search/search.service.ts')
-rw-r--r-- | client/src/app/shared/search/search.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/search/search.service.ts b/client/src/app/shared/search/search.service.ts index c7993db3d..717a7fa50 100644 --- a/client/src/app/shared/search/search.service.ts +++ b/client/src/app/shared/search/search.service.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { Injectable } from '@angular/core'; | 1 | import { Injectable } from '@angular/core'; |
2 | import { Subject } from 'rxjs/Subject'; | 2 | import { Subject } from 'rxjs/Subject'; |
3 | import { ReplaySubject } from 'rxjs/ReplaySubject'; | ||
3 | 4 | ||
4 | import { Search } from './search.model'; | 5 | import { Search } from './search.model'; |
5 | 6 | ||
@@ -12,6 +13,6 @@ export class SearchService { | |||
12 | 13 | ||
13 | constructor() { | 14 | constructor() { |
14 | this.updateSearch = new Subject<Search>(); | 15 | this.updateSearch = new Subject<Search>(); |
15 | this.searchUpdated = new Subject<Search>(); | 16 | this.searchUpdated = new ReplaySubject<Search>(1); |
16 | } | 17 | } |
17 | } | 18 | } |