mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
connect updates
This commit is contained in:
parent
90082ed4bc
commit
83d7b945d7
25 changed files with 686 additions and 312 deletions
|
@ -19,6 +19,18 @@
|
|||
});
|
||||
},
|
||||
|
||||
showNoConfigurationMessage: function() {
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('NoPluginConfigurationMessage')
|
||||
});
|
||||
},
|
||||
|
||||
showConnectMessage: function () {
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('MessagePluginConfigurationRequiresLocalAccess')
|
||||
});
|
||||
},
|
||||
|
||||
populateList: function (page, plugins, pluginConfigurationPages) {
|
||||
|
||||
plugins = plugins.sort(function (plugin1, plugin2) {
|
||||
|
@ -39,10 +51,14 @@
|
|||
|
||||
html += "<li>";
|
||||
|
||||
if (configPage) {
|
||||
if (Dashboard.isConnectMode()) {
|
||||
html += "<a onclick='PluginsPage.showConnectMessage();' href='#'>";
|
||||
}
|
||||
else if (configPage) {
|
||||
html += "<a href='" + Dashboard.getConfigurationPageUrl(configPage.Name) + "'>";
|
||||
} else {
|
||||
html += "<a onclick='Dashboard.alert(\"" + Globalize.translate('NoPluginConfigurationMessage') + "\");' href='#'>";
|
||||
}
|
||||
else {
|
||||
html += "<a onclick='PluginsPage.showNoConfigurationMessage();' href='#'>";
|
||||
}
|
||||
|
||||
html += "<h3>" + plugin.Name + "</h3>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue