1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #396 from Abbe98/book-download-btn

Move download action to major button for books (itemdetailspage)
This commit is contained in:
Anthony Lavado 2019-08-14 16:05:52 -04:00 committed by GitHub
commit e20f7e02ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 1 deletions

View file

@ -133,7 +133,8 @@ define(['apphost', 'globalize', 'connectionManager', 'itemHelper', 'appRouter',
}
}
if (item.CanDownload && appHost.supports('filedownload')) {
// Books are promoted to major download Button and therefor excluded in the context menu
if ((item.CanDownload && appHost.supports('filedownload')) && item.Type !== "Book") {
commands.push({
name: globalize.translate('Download'),
id: 'download'