mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
multiple fixes and otimizations
This commit is contained in:
parent
1171bc1cdf
commit
b49524e5ea
10 changed files with 9 additions and 18 deletions
|
@ -152,9 +152,9 @@ export function showLoadingMsg() {
|
|||
|
||||
export function confirm(message, title, callback) {
|
||||
baseConfirm(message, title).then(function() {
|
||||
callback(!0);
|
||||
callback(true);
|
||||
}).catch(function() {
|
||||
callback(!1);
|
||||
callback(false);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -143,7 +143,6 @@ import { Events } from 'jellyfin-apiclient';
|
|||
return Promise.all(promises);
|
||||
}
|
||||
|
||||
const cacheParam = new Date().getTime();
|
||||
function loadTranslation(translations, lang) {
|
||||
lang = normalizeLocaleName(lang);
|
||||
let filtered = translations.filter(function (t) {
|
||||
|
@ -156,7 +155,6 @@ import { Events } from 'jellyfin-apiclient';
|
|||
});
|
||||
}
|
||||
|
||||
//import('../strings/')
|
||||
return new Promise(function (resolve, reject) {
|
||||
if (!filtered.length) {
|
||||
resolve();
|
||||
|
|
|
@ -978,8 +978,6 @@ import ServerConnections from '../components/ServerConnections';
|
|||
updateLibraryNavLinks(page);
|
||||
});
|
||||
|
||||
renderHeader();
|
||||
|
||||
Events.on(ServerConnections, 'localusersignedin', function (e, user) {
|
||||
const currentApiClient = ServerConnections.getApiClient(user.ServerId);
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import inputManager from './inputManager';
|
||||
import focusManager from '../components/focusManager';
|
||||
import browser from '../scripts/browser';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue