From cc88679d9eeca05b8095983a421acdf521a8adef Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sat, 20 Jun 2020 01:43:08 +1200 Subject: [PATCH] Move date into info and adjust subscribe button --- .../watch-video-description.js | 5 ---- .../watch-video-description.vue | 1 - .../watch-video-info/watch-video-info.js | 6 +++++ .../watch-video-info/watch-video-info.sass | 25 ++++++++++++++----- .../watch-video-info/watch-video-info.vue | 7 ++++-- 5 files changed, 30 insertions(+), 14 deletions(-) diff --git a/src/renderer/components/watch-video-description/watch-video-description.js b/src/renderer/components/watch-video-description/watch-video-description.js index c5a45e8b..095dc038 100644 --- a/src/renderer/components/watch-video-description/watch-video-description.js +++ b/src/renderer/components/watch-video-description/watch-video-description.js @@ -23,15 +23,10 @@ export default Vue.extend({ }, data: function () { return { - dateString: '', shownDescription: '' } }, mounted: function () { - const date = new Date(this.published) - const dateSplit = date.toDateString().split(' ') - this.dateString = `${dateSplit[0]} ${dateSplit[1]} ${dateSplit[2]}, ${dateSplit[3]}` - if (this.descriptionHtml !== '') { this.shownDescription = this.parseDescriptionHtml(this.descriptionHtml) } else { diff --git a/src/renderer/components/watch-video-description/watch-video-description.vue b/src/renderer/components/watch-video-description/watch-video-description.vue index ee3e4132..8ed65de6 100644 --- a/src/renderer/components/watch-video-description/watch-video-description.vue +++ b/src/renderer/components/watch-video-description/watch-video-description.vue @@ -1,6 +1,5 @@