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

@@ -23,10 +23,7 @@
<a class="btn mr-1" :href="getRssUrl">
<font-awesome-icon icon="rss" />
</a>
<WatchOnYouTubeButton
v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)"
:link="`https://www.youtube.com/playlist?list=${this.$route.query.list}`"
/>
<WatchOnYouTubeButton :link="`https://www.youtube.com/playlist?list=${this.$route.query.list}`" />
</div>
</div>