mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-12 19:28:22 +00:00
Move v-if calls to single template.
This commit is contained in:
parent
b382b525b1
commit
756471695d
@ -7,14 +7,16 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- For large screens -->
|
<template v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)">
|
||||||
<a :href="link" v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)" class="btn lt-lg:hidden">
|
<!-- For large screens -->
|
||||||
<i18n-t keypath="player.watch_on" tag="strong">
|
<a :href="link" 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>
|
||||||
|
<!-- For small screens -->
|
||||||
|
<a :href="link" class="btn lg:hidden">
|
||||||
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
|
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
|
||||||
</i18n-t>
|
</a>
|
||||||
</a>
|
</template>
|
||||||
<!-- For small screens -->
|
|
||||||
<a :href="link" v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)" class="btn lg:hidden">
|
|
||||||
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
|
|
||||||
</a>
|
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user