mirror of https://github.com/Chocobozzz/PeerTube
Force channel in my videos
parent
f67ac646a2
commit
3fca30a7ef
|
@ -40,7 +40,8 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
|
||||||
privacyLabel: false,
|
privacyLabel: false,
|
||||||
privacyText: true,
|
privacyText: true,
|
||||||
state: true,
|
state: true,
|
||||||
blacklistInfo: true
|
blacklistInfo: true,
|
||||||
|
forceChannelInBy: true
|
||||||
}
|
}
|
||||||
videoDropdownDisplayOptions: VideoActionsDisplayType = {
|
videoDropdownDisplayOptions: VideoActionsDisplayType = {
|
||||||
playlist: false,
|
playlist: false,
|
||||||
|
|
|
@ -21,13 +21,15 @@ import { VideoActionsDisplayType } from './video-actions-dropdown.component'
|
||||||
export type MiniatureDisplayOptions = {
|
export type MiniatureDisplayOptions = {
|
||||||
date?: boolean
|
date?: boolean
|
||||||
views?: boolean
|
views?: boolean
|
||||||
by?: boolean
|
|
||||||
avatar?: boolean
|
avatar?: boolean
|
||||||
privacyLabel?: boolean
|
privacyLabel?: boolean
|
||||||
privacyText?: boolean
|
privacyText?: boolean
|
||||||
state?: boolean
|
state?: boolean
|
||||||
blacklistInfo?: boolean
|
blacklistInfo?: boolean
|
||||||
nsfw?: boolean
|
nsfw?: boolean
|
||||||
|
|
||||||
|
by?: boolean
|
||||||
|
forceChannelInBy?: boolean
|
||||||
}
|
}
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-video-miniature',
|
selector: 'my-video-miniature',
|
||||||
|
@ -47,7 +49,8 @@ export class VideoMiniatureComponent implements OnInit {
|
||||||
privacyLabel: false,
|
privacyLabel: false,
|
||||||
privacyText: false,
|
privacyText: false,
|
||||||
state: false,
|
state: false,
|
||||||
blacklistInfo: false
|
blacklistInfo: false,
|
||||||
|
forceChannelInBy: false
|
||||||
}
|
}
|
||||||
|
|
||||||
@Input() displayVideoActions = true
|
@Input() displayVideoActions = true
|
||||||
|
@ -267,6 +270,11 @@ export class VideoMiniatureComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
private setUpBy () {
|
private setUpBy () {
|
||||||
|
if (this.displayOptions.forceChannelInBy) {
|
||||||
|
this.ownerDisplayType = 'videoChannel'
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const accountName = this.video.account.name
|
const accountName = this.video.account.name
|
||||||
|
|
||||||
// If the video channel name is an UUID (not really displayable, we changed this behaviour in v1.0.0-beta.12)
|
// If the video channel name is an UUID (not really displayable, we changed this behaviour in v1.0.0-beta.12)
|
||||||
|
|
Loading…
Reference in New Issue