Merge "Show status for enabled plugins in the WebUI as 'Enabled'"
This commit is contained in:
@@ -109,6 +109,7 @@ public interface AdminConstants extends Constants {
|
||||
String projectAdminTabAccess();
|
||||
|
||||
String plugins();
|
||||
String pluginEnabled();
|
||||
String pluginDisabled();
|
||||
|
||||
String columnPluginName();
|
||||
|
||||
@@ -89,6 +89,7 @@ projectAdminTabBranches = Branches
|
||||
projectAdminTabAccess = Access
|
||||
|
||||
plugins = Plugins
|
||||
pluginEnabled = Enabled
|
||||
pluginDisabled = Disabled
|
||||
columnPluginName = Plugin Name
|
||||
columnPluginVersion = Version
|
||||
|
||||
@@ -92,9 +92,8 @@ public class PluginListScreen extends PluginScreen {
|
||||
+ plugin.name() + "/")));
|
||||
}
|
||||
table.setText(row, 2, plugin.version());
|
||||
if (plugin.isDisabled()) {
|
||||
table.setText(row, 3, Util.C.pluginDisabled());
|
||||
}
|
||||
table.setText(row, 3, plugin.isDisabled() ? Util.C.pluginDisabled()
|
||||
: Util.C.pluginEnabled());
|
||||
|
||||
final FlexCellFormatter fmt = table.getFlexCellFormatter();
|
||||
fmt.addStyleName(row, 1, Gerrit.RESOURCES.css().dataCell());
|
||||
|
||||
Reference in New Issue
Block a user