diff --git a/src/renderer/components/playlist-info/playlist-info.js b/src/renderer/components/playlist-info/playlist-info.js index 3942920d..d59c30a5 100644 --- a/src/renderer/components/playlist-info/playlist-info.js +++ b/src/renderer/components/playlist-info/playlist-info.js @@ -47,6 +47,10 @@ export default Vue.extend({ return this.$store.getters.getThumbnailPreference }, + hideViews: function () { + return this.$store.getters.getHideVideoViews + }, + shareHeaders: function () { return [ this.$t('Playlist.Share Playlist.Copy YouTube Link'), @@ -83,7 +87,7 @@ export default Vue.extend({ // Causes errors if not put inside of a check if (typeof (this.data.viewCount) !== 'undefined') { - this.viewCount = this.data.viewCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + this.viewCount = this.hideViews ? null : this.data.viewCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') } if (typeof (this.data.videoCount) !== 'undefined') { diff --git a/src/renderer/components/playlist-info/playlist-info.vue b/src/renderer/components/playlist-info/playlist-info.vue index 98f6e199..6a85ea61 100644 --- a/src/renderer/components/playlist-info/playlist-info.vue +++ b/src/renderer/components/playlist-info/playlist-info.vue @@ -12,7 +12,7 @@ {{ title }}
- {{ videoCount }} {{ $t("Playlist.Videos") }} - {{ viewCount }} {{ $t("Playlist.Views") }} - + {{ videoCount }} {{ $t("Playlist.Videos") }} - {{ viewCount }} {{ $t("Playlist.Views") }} - {{ $t("Playlist.Last Updated On") }}