mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use unified theme media player
This commit is contained in:
parent
50f9d7d4fe
commit
d8c4154947
12 changed files with 93 additions and 144 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events, localSync) {
|
||||
define(['apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (appHost, globalize, syncJobList, events, localSync) {
|
||||
|
||||
function initSupporterInfo(view, params) {
|
||||
|
||||
|
@ -40,13 +40,6 @@
|
|||
|
||||
var status = localSync.getSyncStatus();
|
||||
|
||||
page.querySelector('.labelSyncStatus').innerHTML = Globalize.translate('LabelLocalSyncStatusValue', status);
|
||||
if (status == 'Active') {
|
||||
loading.show();
|
||||
} else {
|
||||
loading.hide();
|
||||
}
|
||||
|
||||
if (status == "Active") {
|
||||
page.querySelector('.btnSyncNow').classList.add('hide');
|
||||
}
|
||||
|
@ -103,8 +96,6 @@
|
|||
|
||||
view.addEventListener('viewbeforehide', function () {
|
||||
|
||||
loading.hide();
|
||||
|
||||
if (interval) {
|
||||
clearInterval(interval);
|
||||
interval = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue