import { Injectable } from '@angular/core'
import { ActivatedRouteSnapshot, Resolve } from '@angular/router'
import { AuthService } from '@app/core'
-import { listUserChannels } from '@app/helpers'
+import { listUserChannelsForSelect } from '@app/helpers'
import { VideoCaptionService, VideoDetails, VideoService } from '@app/shared/shared-main'
import { LiveVideoService } from '@app/shared/shared-video-live'
}
resolve (route: ActivatedRouteSnapshot) {
- const uuid: string = route.params[ 'uuid' ]
+ const uuid: string = route.params['uuid']
return this.videoService.getVideo({ videoId: uuid })
.pipe(
.loadCompleteDescription(video.descriptionPath)
.pipe(map(description => Object.assign(video, { description }))),
- listUserChannels(this.authService),
+ listUserChannelsForSelect(this.authService),
this.videoCaptionService
.listCaptions(video.id)
),
video.isLive
- ? this.liveVideoService.getVideoLive(video.id)
- : of(undefined)
+ ? this.liveVideoService.getVideoLive(video.id)
+ : of(undefined)
]
}
}