mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-03 22:15:03 +02:00
Hide library modal tools tab for new libraries
This commit is contained in:
parent
58b9a42c84
commit
50215dab9a
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ export default {
|
||||||
component: 'modals-libraries-library-tools'
|
component: 'modals-libraries-library-tools'
|
||||||
}
|
}
|
||||||
].filter((tab) => {
|
].filter((tab) => {
|
||||||
|
// Do not show tools tab for new libraries
|
||||||
|
if (tab.id === 'tools' && !this.library) return false
|
||||||
return tab.id !== 'scanner' || this.mediaType === 'book'
|
return tab.id !== 'scanner' || this.mediaType === 'book'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue