Rename config key
This commit is contained in:
parent
7399a79f73
commit
80dea8f4d6
6 changed files with 15 additions and 7 deletions
|
@ -101,11 +101,15 @@ export class VideoMiniatureComponent implements OnInit {
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
get authorAccount () {
|
get authorAccount () {
|
||||||
return this.serverConfig.client.videos.miniature.showAuthorDisplayName ? this.video.account.displayName : this.video.byAccount
|
return this.serverConfig.client.videos.miniature.preferAuthorDisplayName
|
||||||
|
? this.video.account.displayName
|
||||||
|
: this.video.byAccount
|
||||||
}
|
}
|
||||||
|
|
||||||
get authorChannel () {
|
get authorChannel () {
|
||||||
return this.serverConfig.client.videos.miniature.showAuthorDisplayName ? this.video.channel.displayName : this.video.byVideoChannel
|
return this.serverConfig.client.videos.miniature.preferAuthorDisplayName
|
||||||
|
? this.video.channel.displayName
|
||||||
|
: this.video.byVideoChannel
|
||||||
}
|
}
|
||||||
|
|
||||||
get isVideoBlur () {
|
get isVideoBlur () {
|
||||||
|
|
|
@ -75,10 +75,12 @@ email:
|
||||||
subject:
|
subject:
|
||||||
prefix: "[PeerTube]"
|
prefix: "[PeerTube]"
|
||||||
|
|
||||||
|
# PeerTube client/interface configuration
|
||||||
client:
|
client:
|
||||||
videos:
|
videos:
|
||||||
miniature:
|
miniature:
|
||||||
show_author_display_name: false
|
# By default PeerTube client displays author username
|
||||||
|
prefer_author_display_name: false
|
||||||
|
|
||||||
# From the project root directory
|
# From the project root directory
|
||||||
storage:
|
storage:
|
||||||
|
|
|
@ -73,10 +73,12 @@ email:
|
||||||
subject:
|
subject:
|
||||||
prefix: "[PeerTube]"
|
prefix: "[PeerTube]"
|
||||||
|
|
||||||
|
# PeerTube client/interface configuration
|
||||||
client:
|
client:
|
||||||
videos:
|
videos:
|
||||||
miniature:
|
miniature:
|
||||||
show_author_display_name: false
|
# By default PeerTube client displays author username
|
||||||
|
prefer_author_display_name: false
|
||||||
|
|
||||||
# From the project root directory
|
# From the project root directory
|
||||||
storage:
|
storage:
|
||||||
|
|
|
@ -62,7 +62,7 @@ const CONFIG = {
|
||||||
CLIENT: {
|
CLIENT: {
|
||||||
VIDEOS: {
|
VIDEOS: {
|
||||||
MINIATURE: {
|
MINIATURE: {
|
||||||
get SHOW_AUTHOR_DISPLAY_NAME () { return config.get<boolean>('client.videos.miniature.show_author_display_name') }
|
get PREFER_AUTHOR_DISPLAY_NAME () { return config.get<boolean>('client.videos.miniature.prefer_author_display_name') }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -46,7 +46,7 @@ class ServerConfigManager {
|
||||||
client: {
|
client: {
|
||||||
videos: {
|
videos: {
|
||||||
miniature: {
|
miniature: {
|
||||||
showAuthorDisplayName: CONFIG.CLIENT.VIDEOS.MINIATURE.SHOW_AUTHOR_DISPLAY_NAME
|
preferAuthorDisplayName: CONFIG.CLIENT.VIDEOS.MINIATURE.PREFER_AUTHOR_DISPLAY_NAME
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -37,7 +37,7 @@ export interface ServerConfig {
|
||||||
client: {
|
client: {
|
||||||
videos: {
|
videos: {
|
||||||
miniature: {
|
miniature: {
|
||||||
showAuthorDisplayName: boolean
|
preferAuthorDisplayName: boolean
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue