diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html
index 700e6f51e8c..80ec572ca0e 100644
--- a/client/src/app/+video-channels/video-channels.component.html
+++ b/client/src/app/+video-channels/video-channels.component.html
@@ -69,6 +69,7 @@
{{ videoChannel.displayName }}
@{{ videoChannel.nameWithHost }}
+
{{ video.name }}
By {{ video.byAccount }}
+
diff --git a/client/src/app/+video-watch/video-watch.component.ts b/client/src/app/+video-watch/video-watch.component.ts
index 0317985e754..d849bfc2517 100644
--- a/client/src/app/+video-watch/video-watch.component.ts
+++ b/client/src/app/+video-watch/video-watch.component.ts
@@ -77,6 +77,7 @@ import { VideoDescriptionComponent } from './shared/metadata/video-description.c
import { VideoTranscriptionComponent } from './shared/player-widgets/video-transcription.component'
import { VideoWatchPlaylistComponent } from './shared/player-widgets/video-watch-playlist.component'
import { RecommendedVideosComponent } from './shared/recommendations/recommended-videos.component'
+import { GlobalIconComponent } from "@app/shared/shared-icons/global-icon.component"
const debugLogger = debug('peertube:watch:VideoWatchComponent')
@@ -124,8 +125,9 @@ type URLOptions = {
PrivacyConcernsComponent,
PlayerStylesComponent,
VideoWatchPlaylistComponent,
- VideoTranscriptionComponent
- ]
+ VideoTranscriptionComponent,
+ GlobalIconComponent
+]
})
export class VideoWatchComponent implements OnInit, OnDestroy {
private route = inject(ActivatedRoute)
@@ -295,6 +297,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
return genericChannelDisplayName.includes(this.video.channel.displayName)
}
+ isChannelApproved () {
+ return this.video.channel.isApproved ?? false
+ }
+
displayOtherVideosAsRow () {
// Use the same value as in the SASS file
return this.screenService.getWindowInnerWidth() <= 1100
diff --git a/client/src/app/shared/shared-icons/global-icon.component.ts b/client/src/app/shared/shared-icons/global-icon.component.ts
index 94ab5c3d62c..d42e2e791c4 100644
--- a/client/src/app/shared/shared-icons/global-icon.component.ts
+++ b/client/src/app/shared/shared-icons/global-icon.component.ts
@@ -7,6 +7,7 @@ const icons = {
'language': require('../../../assets/images/misc/language.svg'),
'video-lang': require('../../../assets/images/misc/video-lang.svg'),
'support': require('../../../assets/images/misc/support.svg'),
+ 'green-check': require('../../../assets/images/misc/green-check.svg'),
'peertube-x': require('../../../assets/images/misc/peertube-x.svg'),
'robot': require('../../../assets/images/misc/miscellaneous-services.svg'), // material ui
'playlist-add': require('../../../assets/images/misc/playlist-add.svg'), // material ui
diff --git a/client/src/app/shared/shared-main/channel/video-channel.model.ts b/client/src/app/shared/shared-main/channel/video-channel.model.ts
index 348ada8eb06..798d135c733 100644
--- a/client/src/app/shared/shared-main/channel/video-channel.model.ts
+++ b/client/src/app/shared/shared-main/channel/video-channel.model.ts
@@ -24,6 +24,7 @@ export class VideoChannel extends Actor implements ServerVideoChannel {
viewsPerDay?: ViewsPerDate[]
totalViews?: number
+ isApproved?: boolean
static GET_ACTOR_AVATAR_URL (
actor: {
@@ -85,6 +86,10 @@ export class VideoChannel extends Actor implements ServerVideoChannel {
this.totalViews = hash.totalViews
}
+ if (hash.isApproved !== null && hash.isApproved !== undefined) {
+ this.isApproved = hash.isApproved
+ }
+
if (hash.ownerAccount) {
this.ownerAccount = hash.ownerAccount
this.ownerBy = Actor.CREATE_BY_STRING(hash.ownerAccount.name, hash.ownerAccount.host)
diff --git a/client/src/app/shared/standalone-channels/video-channel-edit.component.html b/client/src/app/shared/standalone-channels/video-channel-edit.component.html
index 5582c43f9b1..6692d8ee39a 100644
--- a/client/src/app/shared/standalone-channels/video-channel-edit.component.html
+++ b/client/src/app/shared/standalone-channels/video-channel-edit.component.html
@@ -66,6 +66,15 @@ UPDATE CHANNEL
+
+
+
+