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:
@@ -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