Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/renderer/components/playlist-info/playlist-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import FtIconButton from '../ft-icon-button/ft-icon-button.vue'
import FtInput from '../ft-input/ft-input.vue'
import FtPrompt from '../ft-prompt/ft-prompt.vue'
import {
formatNumber,
showToast,
} from '../../helpers/utils'

Expand Down Expand Up @@ -145,6 +146,14 @@ export default defineComponent({
return this.firstVideoId !== ''
},

parsedViewCount() {
return formatNumber(this.viewCount)
},

parsedVideoCount() {
return formatNumber(this.videoCount)
},

thumbnail: function () {
if (this.thumbnailPreference === 'hidden' || !this.firstVideoIdExists) {
return require('../../assets/img/thumbnail_placeholder.svg')
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/playlist-info/playlist-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
{{ title }}
</h2>
<p>
{{ videoCount }} {{ $t("Playlist.Videos") }}
{{ $tc('Global.Counts.Video Count', videoCount, {count: parsedVideoCount}) }}
<span v-if="!hideViews && !isUserPlaylist">
- {{ viewCount }} {{ $t("Playlist.Views") }}
- {{ $tc('Global.Counts.View Count', viewCount, {count: parsedViewCount}) }}
</span>
<span>- </span>
<span v-if="infoSource !== 'local'">
Expand Down