mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add configurable encoding params
This commit is contained in:
parent
cb4d1e1643
commit
3842bf80e6
13 changed files with 119 additions and 35 deletions
|
@ -2,6 +2,8 @@
|
|||
flex-grow: 1;
|
||||
display: flex;
|
||||
padding: .5em 0;
|
||||
/* Override size from librarymenu */
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.dockedtabs-tab-button {
|
||||
|
|
|
@ -226,7 +226,7 @@
|
|||
';
|
||||
|
||||
if (appHost.supports('sync')) {
|
||||
html += '<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="4">\
|
||||
html += '<button is="emby-button" class="dockedtabs-tab-button docked-tab-syncdownloads emby-tab-button hide" data-index="4">\
|
||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">file_download</i><div>' + globalize.translate('Downloads') + '</div></div>\
|
||||
</button>\
|
||||
';
|
||||
|
@ -270,6 +270,15 @@
|
|||
element.querySelector('.docked-tab-livetv').classList.add('hide');
|
||||
}
|
||||
|
||||
var downloadsTab = element.querySelector('.docked-tab-syncdownloads');
|
||||
if (downloadsTab) {
|
||||
if (user.Policy.EnableSync) {
|
||||
downloadsTab.classList.remove('hide');
|
||||
} else {
|
||||
downloadsTab.classList.add('hide');
|
||||
}
|
||||
}
|
||||
|
||||
if (user.Policy.IsAdministrator) {
|
||||
element.querySelector('.docked-tab-manageserver').classList.remove('hide');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue