mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Allow channel tabs as query parameter
This commit is contained in:
		
							parent
							
								
									0b0d87da93
								
							
						
					
					
						commit
						d7ba61ebbc
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -136,10 +136,12 @@ export default {
 | 
				
			||||||
                        this.tabs.push({
 | 
					                        this.tabs.push({
 | 
				
			||||||
                            translatedName: this.$t("video.videos"),
 | 
					                            translatedName: this.$t("video.videos"),
 | 
				
			||||||
                        });
 | 
					                        });
 | 
				
			||||||
 | 
					                        const tabQuery = this.$route.query.tab;
 | 
				
			||||||
                        for (let i = 0; i < this.channel.tabs.length; i++) {
 | 
					                        for (let i = 0; i < this.channel.tabs.length; i++) {
 | 
				
			||||||
                            let tab = this.channel.tabs[i];
 | 
					                            let tab = this.channel.tabs[i];
 | 
				
			||||||
                            tab.translatedName = this.getTranslatedTabName(tab.name);
 | 
					                            tab.translatedName = this.getTranslatedTabName(tab.name);
 | 
				
			||||||
                            this.tabs.push(tab);
 | 
					                            this.tabs.push(tab);
 | 
				
			||||||
 | 
					                            if (tab.name === tabQuery) this.loadTab(i + 1);
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue