mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-03-28 03:16:58 +00:00
Extract Watch on YouTube button to a component
This commit is contained in:
@@ -23,25 +23,10 @@
|
||||
<a class="btn mr-1" :href="getRssUrl">
|
||||
<font-awesome-icon icon="rss" />
|
||||
</a>
|
||||
|
||||
<!-- Watch on YouTube button: For large screens -->
|
||||
<a
|
||||
<WatchOnYouTubeButton
|
||||
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>
|
||||
:link="`https://www.youtube.com/playlist?list=${this.$route.query.list}`"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -66,11 +51,13 @@
|
||||
<script>
|
||||
import ErrorHandler from "./ErrorHandler.vue";
|
||||
import VideoItem from "./VideoItem.vue";
|
||||
import WatchOnYouTubeButton from "./WatchOnYouTubeButton.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ErrorHandler,
|
||||
VideoItem,
|
||||
WatchOnYouTubeButton,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user