From da40e92cb699cc2d7c627f4dd9923e750c4859db Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 30 Sep 2020 23:01:36 +0200 Subject: [PATCH] Added handleVideoEnded() and the fix for the erroring of the toLocalePublicationString() --- .../components/watch-video-comments/watch-video-comments.js | 2 +- src/renderer/views/Watch/Watch.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.js b/src/renderer/components/watch-video-comments/watch-video-comments.js index 01c05386..80d95926 100644 --- a/src/renderer/components/watch-video-comments/watch-video-comments.js +++ b/src/renderer/components/watch-video-comments/watch-video-comments.js @@ -93,7 +93,7 @@ export default Vue.extend({ comment.showReplies = false comment.dataType = 'local' this.toLocalePublicationString({ - publishText: (comment.time + 'ago'), + publishText: (comment.time + ' ago'), templateString: this.$t('Video.Publicationtemplate'), timeStrings: this.$t('Video.Published'), liveStreamString: this.$t('Video.Watching'), diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 5d7ecaa1..f947328a 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -302,6 +302,7 @@ export default Vue.extend({ message: this.$t('This video is unavailable because of missing formats. This can happen due to country unavailability.'), time: 7000 }) + this.handleVideoEnded() return }