diff --git a/src/controllers/dashboard/plugins/installed.js b/src/controllers/dashboard/plugins/installed.js index 87e9428cc..0b49439c6 100644 --- a/src/controllers/dashboard/plugins/installed.js +++ b/src/controllers/dashboard/plugins/installed.js @@ -37,7 +37,7 @@ define(['loading', 'libraryMenu', 'dom', 'globalize', 'cardStyle', 'emby-button' })[0]; var configPageUrl = configPage ? Dashboard.getConfigurationPageUrl(configPage.Name) : null; var html = ''; - html += "
"; + html += "
"; html += '
'; html += '
'; html += '
'; @@ -46,9 +46,13 @@ define(['loading', 'libraryMenu', 'dom', 'globalize', 'cardStyle', 'emby-button' html += configPageUrl ? '' : '
'; html += '
'; html += '
'; - html += '
'; - html += ''; - html += '
'; + + if (configPage || plugin.CanUninstall) { + html += '
'; + html += ''; + html += '
'; + } + html += "
"; html += configPage && configPage.DisplayName ? configPage.DisplayName : plugin.Name; html += '
'; @@ -104,6 +108,7 @@ define(['loading', 'libraryMenu', 'dom', 'globalize', 'cardStyle', 'emby-button' var card = dom.parentWithClass(elem, 'card'); var id = card.getAttribute('data-id'); var name = card.getAttribute('data-name'); + var removable = card.getAttribute('data-removable'); var configHref = card.querySelector('.cardContent').getAttribute('href'); var menuItems = []; @@ -115,11 +120,13 @@ define(['loading', 'libraryMenu', 'dom', 'globalize', 'cardStyle', 'emby-button' }); } - menuItems.push({ - name: globalize.translate('ButtonUninstall'), - id: 'delete', - icon: 'delete' - }); + if (removable == 'true') { + menuItems.push({ + name: globalize.translate('ButtonUninstall'), + id: 'delete', + icon: 'delete' + }); + } require(['actionsheet'], function (actionsheet) { actionsheet.show({