From 72784a684bafdf76d4abfa683514cbd160cb4c63 Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 16 Jun 2020 17:42:38 -0400 Subject: [PATCH] Add Published data to watch-video-info component --- package-lock.json | 6 ++++-- .../components/watch-video-info/watch-video-info.js | 4 ++++ src/renderer/views/Watch/Watch.vue | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 056ade5c..d4b0705b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17758,7 +17758,8 @@ }, "minimist": { "version": "1.2.0", - "resolved": "", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true }, "schema-utils": { @@ -20368,7 +20369,8 @@ }, "minimist": { "version": "1.2.0", - "resolved": "", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true }, "string-width": { diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 550b0067..a08a4546 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -36,6 +36,10 @@ export default Vue.extend({ type: String, required: true }, + published: { + type: Number, + required: true + }, viewCount: { type: Number, required: true diff --git a/src/renderer/views/Watch/Watch.vue b/src/renderer/views/Watch/Watch.vue index d638f6aa..43bf9f25 100644 --- a/src/renderer/views/Watch/Watch.vue +++ b/src/renderer/views/Watch/Watch.vue @@ -25,6 +25,7 @@ :channel-id="channelId" :channel-name="channelName" :channel-thumbnail="channelThumbnail" + :published="videoPublished" :subscription-count-text="channelSubscriptionCountText" :like-count="videoLikeCount" :dislike-count="videoDislikeCount"