mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update index.js
This commit is contained in:
parent
e2ac6db7a1
commit
07b9cd5348
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ function deletePlugin(page, uniqueid, version, name) {
|
||||||
confirmText: globalize.translate('HeaderUninstallPlugin')
|
confirmText: globalize.translate('HeaderUninstallPlugin')
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
loading.show();
|
loading.show();
|
||||||
ApiClient.uninstallPlugin(uniqueid, version).then(function () {
|
ApiClient.uninstallPluginByVersion(uniqueid, version).then(function () {
|
||||||
reloadList(page);
|
reloadList(page);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -60,7 +60,7 @@ function getPluginCardHtml(plugin, pluginConfigurationPages) {
|
||||||
html += '<div class="cardScalable">';
|
html += '<div class="cardScalable">';
|
||||||
html += '<div class="cardPadder cardPadder-backdrop"></div>';
|
html += '<div class="cardPadder cardPadder-backdrop"></div>';
|
||||||
html += configPageUrl ? '<a class="cardContent cardImageContainer" is="emby-linkbutton" href="' + configPageUrl + '">' : '<div class="cardContent noConfigPluginCard noHoverEffect cardImageContainer emby-button">';
|
html += configPageUrl ? '<a class="cardContent cardImageContainer" is="emby-linkbutton" href="' + configPageUrl + '">' : '<div class="cardContent noConfigPluginCard noHoverEffect cardImageContainer emby-button">';
|
||||||
html += '<span style="background-image: url(/Plugins/' + plugin.Id + '/' + plugin.Version +'/StatusImage); background-position: center; background-repeat: no-repeat" class="cardImageIcon';
|
html += '<span class="cardImageIcon';
|
||||||
if (plugin.HasImage) {
|
if (plugin.HasImage) {
|
||||||
html += '"><img src="/Plugins/' + plugin.Id + '/' + plugin.Version + '/Image" style="width:100%;height:auto"/>';
|
html += '"><img src="/Plugins/' + plugin.Id + '/' + plugin.Version + '/Image" style="width:100%;height:auto"/>';
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,9 +77,9 @@ function getPluginCardHtml(plugin, pluginConfigurationPages) {
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "<div class='cardText'>";
|
html += "<div class='cardText'>"
|
||||||
html += configPage && configPage.DisplayName ? configPage.DisplayName : plugin.Name;
|
html += configPage && configPage.DisplayName ? configPage.DisplayName : plugin.Name;
|
||||||
html += '</div>';
|
html += '<br/>Status: ' + plugin.Status +'</div>';
|
||||||
html += "<div class='cardText cardText-secondary'>";
|
html += "<div class='cardText cardText-secondary'>";
|
||||||
html += plugin.Version;
|
html += plugin.Version;
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue