1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

allow plugin config changes on standalone

This commit is contained in:
dkanada 2020-09-02 20:50:32 +09:00
parent 692a35c5a4
commit bf9c8778b0
6 changed files with 14 additions and 25 deletions

View file

@ -13,8 +13,9 @@ import 'css!components/viewManager/viewContainer';
controllerUrl = controllerUrl.substring('__plugin/'.length);
}
controllerUrl = Dashboard.getConfigurationResourceUrl(controllerUrl);
return import(controllerUrl).then((ControllerFactory) => {
controllerUrl = Dashboard.getPluginUrl(controllerUrl);
let apiUrl = ApiClient.getUrl('/web/' + controllerUrl);
return import(apiUrl).then((ControllerFactory) => {
options.controllerFactory = ControllerFactory;
});
}
@ -32,7 +33,7 @@ import 'css!components/viewManager/viewContainer';
pageIndex = 0;
}
const isPluginpage = options.url.toLowerCase().indexOf('/configurationpage') !== -1;
const isPluginpage = options.url.includes('configurationpage');
const newViewInfo = normalizeNewView(options, isPluginpage);
const newView = newViewInfo.elem;
@ -243,4 +244,3 @@ export default {
reset: reset,
setOnBeforeChange: setOnBeforeChange
};