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
3 changed files with 29 additions and 1 deletions
+2 -1
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'