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

@@ -108,10 +108,7 @@
>
<font-awesome-icon icon="rss" />
</a>
<WatchOnYouTubeButton
v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)"
:link="`https://youtu.be/${getVideoId()}`"
/>
<WatchOnYouTubeButton :link="`https://youtu.be/${getVideoId()}`" />
<!-- Share Dialog -->
<button class="btn" @click="showShareModal = !showShareModal">
<i18n-t class="lt-lg:hidden" keypath="actions.share" tag="strong"></i18n-t>