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

@@ -8,13 +8,13 @@ export default {
<template>
<!-- For large screens -->
<a :href="link" class="btn lt-lg:hidden">
<a :href="link" v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)" 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">
<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>