define(['jQuery', 'cardStyle'], function ($) { function deletePlugin(page, uniqueid, name) { var msg = Globalize.translate('UninstallPluginConfirmation').replace("{0}", name); require(['confirm'], function (confirm) { confirm(msg, Globalize.translate('UninstallPluginHeader')).then(function () { Dashboard.showLoadingMsg(); ApiClient.uninstallPlugin(uniqueid).then(function () { reloadList(page); }); }); }); } function showNoConfigurationMessage() { Dashboard.alert({ message: Globalize.translate('NoPluginConfigurationMessage') }); } function showConnectMessage() { Dashboard.alert({ message: Globalize.translate('MessagePluginConfigurationRequiresLocalAccess') }); } function getPluginCardHtml(plugin, pluginConfigurationPages) { var configPage = $.grep(pluginConfigurationPages, function (pluginConfigurationPage) { return pluginConfigurationPage.PluginId == plugin.Id; })[0]; var html = ''; var isConnectMode = Dashboard.isConnectMode(); var configPageUrl = configPage ? Dashboard.getConfigurationPageUrl(configPage.Name) : null; var href = configPage && !isConnectMode ? configPageUrl : null; html += "
' + Globalize.translate('MessageNoPluginsDueToAppStore') + '
'; } else { html += '' + Globalize.translate('MessageNoPluginsInstalled') + '
'; html += ''; html += Globalize.translate('BrowsePluginCatalogMessage'); html += '
'; } html += '