Add Watch on YouTube button

This commit is contained in:
thecashewtrader
2022-11-02 21:40:27 +05:30
committed by Kavin
parent 64a2718e31
commit f0fdd84bae
6 changed files with 74 additions and 3 deletions

View File

@@ -35,6 +35,25 @@
<font-awesome-icon icon="rss" />
</a>
<!-- Watch on YouTube button: For large screens -->
<a
v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)"
:href="`https://youtube.com/channel/${this.channel.id}`"
class="btn lt-lg:hidden ml-3"
>
<i18n-t keypath="player.watch_on" tag="strong">
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
</i18n-t>
</a>
<!-- Watch on YouTube button: For small screens -->
<a
v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)"
:href="`https://youtube.com/channel/${this.channel.id}`"
class="btn lg:hidden ml-3"
>
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
</a>
<div class="flex mt-4 mb-2">
<button
v-for="(tab, index) in tabs"