Show status for enabled plugins in the WebUI as 'Enabled'

At the moment no status is shown for enabled plugins on the
PluginListScreen. Some users may be confused by the missing status
information.

Show the status for enabled plugins as 'Enabled'. This is also
consistent with the status that is shown for enabled plugins by the
'gerrit plugin ls' SSH command.

Change-Id: I369393ef902834d272cbf17ea36dbe83f809d3aa
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2012-10-23 09:31:36 +02:00
parent 1a6def9bd7
commit d7c6140fe1
3 changed files with 4 additions and 3 deletions

View File

@@ -109,6 +109,7 @@ public interface AdminConstants extends Constants {
String projectAdminTabAccess();
String plugins();
String pluginEnabled();
String pluginDisabled();
String columnPluginName();

View File

@@ -89,6 +89,7 @@ projectAdminTabBranches = Branches
projectAdminTabAccess = Access
plugins = Plugins
pluginEnabled = Enabled
pluginDisabled = Disabled
columnPluginName = Plugin Name
columnPluginVersion = Version

View File

@@ -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());