mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-10-30 20:21:58 +00:00 
			
		
		
		
	Move v-if calls to single template.
This commit is contained in:
		| @@ -7,14 +7,16 @@ export default { | ||||
| </script> | ||||
|  | ||||
| <template> | ||||
|     <!-- For large screens --> | ||||
|     <a :href="link" v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)" class="btn lt-lg:hidden"> | ||||
|         <i18n-t keypath="player.watch_on" tag="strong"> | ||||
|     <template v-if="this.getPreferenceBoolean('showWatchOnYouTube', false)"> | ||||
|         <!-- For large screens --> | ||||
|         <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']" /> | ||||
|         </i18n-t> | ||||
|     </a> | ||||
|     <!-- 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> | ||||
|         </a> | ||||
|     </template> | ||||
| </template> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kavin
					Kavin