Hide library modal tools tab for new libraries

This commit is contained in:
advplyr 2023-10-21 13:00:41 -05:00
parent 58b9a42c84
commit 50215dab9a

View File

@ -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'
}) })
}, },