updated content tabs' style

This commit is contained in:
Roberto Tonino
2020-06-16 21:57:18 +02:00
parent e21469307b
commit ea1938d429
9 changed files with 79 additions and 53 deletions

View File

@@ -46,7 +46,7 @@ export function showView(viewType, event) {
showTab(viewType, id)
}
export function showErrors(event){
export function showErrors(event) {
ErrorsTab.showErrors(event.data.item)
changeTab(event.target, 'main', 'errors_tab')
}
@@ -209,6 +209,7 @@ function changeTab(sidebarEl, section, tabName) {
tabcontent[i].style.display = 'none'
}
tablinks = document.getElementsByClassName(section + '_tablinks')
// tablinks = document.getElementsByClassName('section-tabs__tab')
for (i = 0; i < tablinks.length; i++) {
tablinks[i].classList.remove('active')
}
@@ -234,7 +235,7 @@ function changeTab(sidebarEl, section, tabName) {
['track_search', 'album_search', 'artist_search', 'playlist_search'].indexOf(search_selected) != -1 &&
MainSearch.results[search_selected.split('_')[0] + 'Tab'].data.length == 0
) {
console.log(search_selected.split('_')[0] + 'Tab')
// console.log(search_selected.split('_')[0] + 'Tab')
MainSearch.search(search_selected.split('_')[0])
}