aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+search
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+search')
-rw-r--r--client/src/app/+search/shared/abstract-lazy-load.resolver.ts2
-rw-r--r--client/src/app/+search/shared/playlist-lazy-load.resolver.ts2
-rw-r--r--client/src/app/+search/shared/video-lazy-load.resolver.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+search/shared/abstract-lazy-load.resolver.ts b/client/src/app/+search/shared/abstract-lazy-load.resolver.ts
index 31240f451..b18a5b64d 100644
--- a/client/src/app/+search/shared/abstract-lazy-load.resolver.ts
+++ b/client/src/app/+search/shared/abstract-lazy-load.resolver.ts
@@ -1,7 +1,7 @@
1import { Observable } from 'rxjs' 1import { Observable } from 'rxjs'
2import { map } from 'rxjs/operators' 2import { map } from 'rxjs/operators'
3import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router' 3import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'
4import { ResultList } from '@shared/models/result-list.model' 4import { ResultList } from '@shared/models'
5 5
6export abstract class AbstractLazyLoadResolver <T> implements Resolve<any> { 6export abstract class AbstractLazyLoadResolver <T> implements Resolve<any> {
7 protected router: Router 7 protected router: Router
diff --git a/client/src/app/+search/shared/playlist-lazy-load.resolver.ts b/client/src/app/+search/shared/playlist-lazy-load.resolver.ts
index 14ae798df..3310e9627 100644
--- a/client/src/app/+search/shared/playlist-lazy-load.resolver.ts
+++ b/client/src/app/+search/shared/playlist-lazy-load.resolver.ts
@@ -19,6 +19,6 @@ export class PlaylistLazyLoadResolver extends AbstractLazyLoadResolver<VideoPlay
19 } 19 }
20 20
21 protected buildUrl (playlist: VideoPlaylist) { 21 protected buildUrl (playlist: VideoPlaylist) {
22 return '/w/p/' + playlist.uuid 22 return VideoPlaylist.buildWatchUrl(playlist)
23 } 23 }
24} 24}
diff --git a/client/src/app/+search/shared/video-lazy-load.resolver.ts b/client/src/app/+search/shared/video-lazy-load.resolver.ts
index 12b5b2e82..69a3eb159 100644
--- a/client/src/app/+search/shared/video-lazy-load.resolver.ts
+++ b/client/src/app/+search/shared/video-lazy-load.resolver.ts
@@ -19,6 +19,6 @@ export class VideoLazyLoadResolver extends AbstractLazyLoadResolver<Video> {
19 } 19 }
20 20
21 protected buildUrl (video: Video) { 21 protected buildUrl (video: Video) {
22 return '/w/' + video.uuid 22 return Video.buildWatchUrl(video)
23 } 23 }
24} 24}