From f5b0af50c85e2f8b6b2b054ac1f47123cacbe08d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Aug 2018 11:04:02 +0200 Subject: Search video channel handle/uri --- .../account-video-channels.component.html | 2 +- .../my-account-subscriptions.component.html | 6 +++--- .../my-account-video-channels.component.html | 8 ++++---- client/src/app/+video-channels/video-channels.component.scss | 7 ------- client/src/app/search/search.component.html | 6 +++--- client/src/app/shared/video/video.service.ts | 12 +++--------- 6 files changed, 14 insertions(+), 27 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html index 114a9e517..c3ef1d894 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html @@ -1,6 +1,6 @@
Avatar diff --git a/client/src/app/+my-account/my-account-subscriptions/my-account-subscriptions.component.html b/client/src/app/+my-account/my-account-subscriptions/my-account-subscriptions.component.html index 3752de49f..2d76990f7 100644 --- a/client/src/app/+my-account/my-account-subscriptions/my-account-subscriptions.component.html +++ b/client/src/app/+my-account/my-account-subscriptions/my-account-subscriptions.component.html @@ -1,13 +1,13 @@
- + Avatar
- +
{{ videoChannel.displayName }}
-
{{ videoChannel.name }}
+
{{ videoChannel.nameWithHost }}
{{ videoChannel.followersCount }} subscribers
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html index 548645a76..df74b19b6 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html @@ -7,14 +7,14 @@
- + Avatar
- +
{{ videoChannel.displayName }}
-
{{ videoChannel.name }}
+
{{ videoChannel.nameWithHost }}
{{ videoChannel.followersCount }} subscribers
@@ -23,7 +23,7 @@
- +
diff --git a/client/src/app/+video-channels/video-channels.component.scss b/client/src/app/+video-channels/video-channels.component.scss index a63b1ec06..711b1839d 100644 --- a/client/src/app/+video-channels/video-channels.component.scss +++ b/client/src/app/+video-channels/video-channels.component.scss @@ -11,11 +11,4 @@ .actor-name { flex-grow: 1; } - - my-subscribe-button { - /deep/ span[role=button] { - padding: 7px 12px; - font-size: 16px; - } - } } \ No newline at end of file diff --git a/client/src/app/search/search.component.html b/client/src/app/search/search.component.html index 83d014987..0d09ebbe6 100644 --- a/client/src/app/search/search.component.html +++ b/client/src/app/search/search.component.html @@ -27,14 +27,14 @@
- + Avatar
- +
{{ videoChannel.displayName }}
-
{{ videoChannel.name }}
+
{{ videoChannel.nameWithHost }}
{{ videoChannel.followersCount }} subscribers
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts index 1a934c8e2..558db9543 100644 --- a/client/src/app/shared/video/video.service.ts +++ b/client/src/app/shared/video/video.service.ts @@ -4,14 +4,7 @@ import { Injectable } from '@angular/core' import { Observable } from 'rxjs' import { Video as VideoServerModel, VideoDetails as VideoDetailsServerModel } from '../../../../../shared' import { ResultList } from '../../../../../shared/models/result-list.model' -import { - UserVideoRate, - UserVideoRateUpdate, - VideoChannel, - VideoFilter, - VideoRateType, - VideoUpdate -} from '../../../../../shared/models/videos' +import { UserVideoRate, UserVideoRateUpdate, VideoFilter, VideoRateType, VideoUpdate } from '../../../../../shared/models/videos' import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum' import { environment } from '../../../environments/environment' import { ComponentPagination } from '../rest/component-pagination.model' @@ -28,6 +21,7 @@ import { AccountService } from '@app/shared/account/account.service' import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' import { ServerService } from '@app/core' import { UserSubscriptionService } from '@app/shared/user-subscription' +import { VideoChannel } from '@app/shared/video-channel/video-channel.model' @Injectable() export class VideoService { @@ -151,7 +145,7 @@ export class VideoService { params = this.restService.addRestGetParams(params, pagination, sort) return this.authHttp - .get>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.name + '/videos', { params }) + .get>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.nameWithHost + '/videos', { params }) .pipe( switchMap(res => this.extractVideos(res)), catchError(err => this.restExtractor.handleError(err)) -- cgit v1.2.3