1
0
Fork 0
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:
Luke Pulverenti 2016-09-04 11:01:31 -04:00
parent cb4d1e1643
commit 3842bf80e6
13 changed files with 119 additions and 35 deletions

View file

@ -2,6 +2,8 @@
flex-grow: 1;
display: flex;
padding: .5em 0;
/* Override size from librarymenu */
font-size: inherit;
}
.dockedtabs-tab-button {

View file

@ -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 {