X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bremote-interaction%2Fremote-interaction.component.ts;h=775cc580c03f3fd4a8bc53d8cd52677cf33ce0db;hb=8406a9e8eec261e563d99c92f8a18b6bd3e46e0f;hp=e24607b24c3e94eb5ec86b0b13a58faabf44caea;hpb=d43c6b1ffc5e6c895f9e9f9de6625f17a9755c20;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+remote-interaction/remote-interaction.component.ts b/client/src/app/+remote-interaction/remote-interaction.component.ts index e24607b24..775cc580c 100644 --- a/client/src/app/+remote-interaction/remote-interaction.component.ts +++ b/client/src/app/+remote-interaction/remote-interaction.component.ts @@ -1,13 +1,13 @@ import { forkJoin } from 'rxjs' import { Component, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' -import { VideoChannel } from '@app/shared/shared-main' +import { Video, VideoChannel } from '@app/shared/shared-main' import { SearchService } from '@app/shared/shared-search' @Component({ selector: 'my-remote-interaction', templateUrl: './remote-interaction.component.html', - styleUrls: ['./remote-interaction.component.scss'] + styleUrls: [ './remote-interaction.component.scss' ] }) export class RemoteInteractionComponent implements OnInit { error = '' @@ -39,11 +39,11 @@ export class RemoteInteractionComponent implements OnInit { if (videoResult.data.length !== 0) { const video = videoResult.data[0] - redirectUrl = '/videos/watch/' + video.uuid + redirectUrl = Video.buildWatchUrl(video) } else if (channelResult.data.length !== 0) { const channel = new VideoChannel(channelResult.data[0]) - redirectUrl = '/video-channels/' + channel.nameWithHost + redirectUrl = '/c/' + channel.nameWithHost } else { this.error = $localize`Cannot access to the remote resource` return