mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix sync status display
This commit is contained in:
parent
a07e6b59a3
commit
94a5cf7549
26 changed files with 415 additions and 276 deletions
|
@ -6,8 +6,6 @@
|
|||
|
||||
if (LocalSync.isSupported()) {
|
||||
|
||||
page.querySelector('.localSyncStatus').classList.remove('hide');
|
||||
|
||||
var status = LocalSync.getSyncStatus();
|
||||
|
||||
page.querySelector('.labelSyncStatus').innerHTML = Globalize.translate('LabelLocalSyncStatusValue', status);
|
||||
|
@ -20,9 +18,6 @@
|
|||
page.querySelector('.btnSyncNow').classList.remove('hide');
|
||||
}
|
||||
|
||||
} else {
|
||||
page.querySelector('.localSyncStatus').classList.add('hide');
|
||||
page.querySelector('.syncSpinner').active = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -47,7 +42,19 @@
|
|||
syncNow(page);
|
||||
});
|
||||
|
||||
}).on('pageshow', "#mySyncActivityPage", function () {
|
||||
require(['localsync'], function () {
|
||||
|
||||
if (LocalSync.isSupported()) {
|
||||
|
||||
page.querySelector('.localSyncStatus').classList.remove('hide');
|
||||
|
||||
} else {
|
||||
page.querySelector('.localSyncStatus').classList.add('hide');
|
||||
page.querySelector('.syncSpinner').active = false;
|
||||
}
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#mySyncActivityPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue