From 306335ab1697e8b94bb7a1869465d040d554399e Mon Sep 17 00:00:00 2001 From: Preston Date: Thu, 13 Aug 2020 14:21:25 -0400 Subject: [PATCH] Have channel toast messages show up again --- src/renderer/views/Channel/Channel.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js index 5fb567a0..923a3e04 100644 --- a/src/renderer/views/Channel/Channel.js +++ b/src/renderer/views/Channel/Channel.js @@ -1,4 +1,5 @@ import Vue from 'vue' +import { mapActions } from 'vuex' import FtCard from '../../components/ft-card/ft-card.vue' import FtButton from '../../components/ft-button/ft-button.vue' import FtInput from '../../components/ft-input/ft-input.vue' @@ -9,6 +10,7 @@ import FtLoader from '../../components/ft-loader/ft-loader.vue' import FtElementList from '../../components/ft-element-list/ft-element-list.vue' import ytch from 'yt-channel-info' +import autolinker from 'autolinker' export default Vue.extend({ name: 'Search', @@ -179,7 +181,7 @@ export default Vue.extend({ this.channelName = response.author this.subCount = response.subscriberCount this.thumbnailUrl = response.authorThumbnails[2].url - this.channelDescription = response.description + this.channelDescription = autolinker.link(response.description) this.relatedChannels = response.relatedChannels if (response.authorBanners !== null) { @@ -270,7 +272,7 @@ export default Vue.extend({ this.id = response.authorId this.subCount = response.subCount this.thumbnailUrl = response.authorThumbnails[3].url - this.channelDescription = response.description + this.channelDescription = autolinker.link(response.description) this.relatedChannels = response.relatedChannels this.latestVideos = response.latestVideos @@ -544,6 +546,10 @@ export default Vue.extend({ this.isLoading = false } }) - } + }, + + ...mapActions([ + 'showToast' + ]) } })