Move conditional rendering logic to WatchOnYouTubeButton

This commit is contained in:
thecashewtrader
2022-11-03 14:44:08 +05:30
committed by Kavin
parent 662eb32e3e
commit b382b525b1
4 changed files with 5 additions and 14 deletions

View File

@@ -35,10 +35,7 @@
<font-awesome-icon icon="rss" />
</a>
<WatchOnYouTubeButton
v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)"
:link="`https://youtube.com/channel/${this.channel.id}`"
/>
<WatchOnYouTubeButton :link="`https://youtube.com/channel/${this.channel.id}`" />
<div class="flex mt-4 mb-2">
<button