mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-03-28 03:16:58 +00:00
Add Watch on YouTube button
This commit is contained in:
@@ -20,9 +20,28 @@
|
||||
<button class="btn mr-1" @click="downloadPlaylistAsTxt">
|
||||
{{ $t("actions.download_as_txt") }}
|
||||
</button>
|
||||
<a class="btn" :href="getRssUrl">
|
||||
<a class="btn mr-1" :href="getRssUrl">
|
||||
<font-awesome-icon icon="rss" />
|
||||
</a>
|
||||
|
||||
<!-- Watch on YouTube button: For large screens -->
|
||||
<a
|
||||
v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)"
|
||||
:href="`https://www.youtube.com/playlist?list=${this.$route.query.list}`"
|
||||
class="btn lt-lg:hidden"
|
||||
>
|
||||
<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://www.youtube.com/playlist?list=${this.$route.query.list}`"
|
||||
class="btn lg:hidden"
|
||||
>
|
||||
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user