mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
618533f773
commit
f8b530020b
16 changed files with 229 additions and 79 deletions
|
@ -473,21 +473,19 @@ define(['loading', 'viewManager', 'skinManager', 'pluginManager', 'backdrop', 'b
|
|||
}
|
||||
function show(path, options) {
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
var baseRoute = baseUrl();
|
||||
path = path.replace(baseRoute, '');
|
||||
|
||||
var baseRoute = baseUrl();
|
||||
path = path.replace(baseRoute, '');
|
||||
if (currentRouteInfo && currentRouteInfo.path == path) {
|
||||
|
||||
if (currentRouteInfo && currentRouteInfo.path == path) {
|
||||
|
||||
// can't use this with home right now due to the back menu
|
||||
if (currentRouteInfo.route.type != 'home') {
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
// can't use this with home right now due to the back menu
|
||||
if (currentRouteInfo.route.type != 'home') {
|
||||
return Promise.resolve();
|
||||
}
|
||||
}
|
||||
|
||||
page.show(path, options);
|
||||
page.show(path, options);
|
||||
return new Promise(function (resolve, reject) {
|
||||
setTimeout(resolve, 500);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue