mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add download button to context menu
This commit is contained in:
parent
1ec6da7e88
commit
dbfe037f6e
1 changed files with 10 additions and 0 deletions
|
@ -260,6 +260,16 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (user.Policy.EnableContentDownloading) {
|
||||||
|
if (mediaType) {
|
||||||
|
items.push({
|
||||||
|
name: Globalize.translate('ButtonDownload'),
|
||||||
|
id: 'download',
|
||||||
|
ironIcon: 'file-download'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (commands.indexOf('delete') != -1) {
|
if (commands.indexOf('delete') != -1) {
|
||||||
items.push({
|
items.push({
|
||||||
name: Globalize.translate('ButtonDelete'),
|
name: Globalize.translate('ButtonDelete'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue