mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Improve the switch statement at the feed filter
				
					
				
			This commit is contained in:
		
							parent
							
								
									981ac46bec
								
							
						
					
					
						commit
						9e97fc732b
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -99,13 +99,13 @@ export default {
 | 
			
		|||
            }
 | 
			
		||||
        },
 | 
			
		||||
        shouldShowVideo(video) {
 | 
			
		||||
            switch (this.selectedFilter) {
 | 
			
		||||
                case "all":
 | 
			
		||||
                    return true;
 | 
			
		||||
            switch (this.selectedFilter.toLowerCase()) {
 | 
			
		||||
                case "shorts":
 | 
			
		||||
                    return video.isShort;
 | 
			
		||||
                case "videos":
 | 
			
		||||
                    return !video.isShort;
 | 
			
		||||
                default:
 | 
			
		||||
                    return video.isShort;
 | 
			
		||||
                    return true;
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        onFilterChange() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue