* Console: Don't display 'unsupported' message on some config pages when restart/shutdown buttons clicked

This commit is contained in:
zzz
2013-06-17 19:43:32 +00:00
parent f9f1391057
commit fa0b52fc3a
8 changed files with 8 additions and 7 deletions

View File

@ -168,7 +168,7 @@ public class ConfigClientsHandler extends FormHandler {
startWebApp(app); startWebApp(app);
} }
} else { } else {
addFormError(_("Unsupported") + ' ' + _action + '.'); //addFormError(_("Unsupported") + ' ' + _action + '.');
} }
} }

View File

@ -99,7 +99,7 @@ public class ConfigHomeHandler extends FormHandler {
} }
HomeHelper.saveApps(_context, prop, apps, !("3".equals(group))); HomeHelper.saveApps(_context, prop, apps, !("3".equals(group)));
} else { } else {
addFormError(_("Unsupported")); //addFormError(_("Unsupported"));
} }
} }
} }

View File

@ -46,7 +46,7 @@ public class ConfigKeyringHandler extends FormHandler {
} }
} }
} else { } else {
addFormError(_("Unsupported")); //addFormError(_("Unsupported"));
} }
} }

View File

@ -60,7 +60,7 @@ public class ConfigPeerHandler extends FormHandler {
} else if (_action.startsWith("Check")) { } else if (_action.startsWith("Check")) {
addFormError(_("Unsupported")); addFormError(_("Unsupported"));
} else { } else {
addFormError("Unknown action \"" + _action + '"'); //addFormError(_("Unsupported") + ' ' + _action + '.');
} }
} }

View File

@ -31,7 +31,7 @@ public class ConfigReseedHandler extends FormHandler {
saveChanges(); saveChanges();
return; return;
} }
addFormError(_("Unsupported") + ' ' + _action + '.'); //addFormError(_("Unsupported") + ' ' + _action + '.');
} }
/** @since 0.8.9 */ /** @since 0.8.9 */

View File

@ -25,6 +25,7 @@ public class ConfigRestartBean {
return _systemNonce; return _systemNonce;
} }
/** this also initiates the restart/shutdown based on action */
public static String renderStatus(String urlBase, String action, String nonce) { public static String renderStatus(String urlBase, String action, String nonce) {
RouterContext ctx = ContextHelper.getContext(null); RouterContext ctx = ContextHelper.getContext(null);
String systemNonce = getNonce(); String systemNonce = getNonce();

View File

@ -137,7 +137,7 @@ public class ConfigSummaryHandler extends FormHandler {
addFormNotice(_("Saved order of sections.") + " " + addFormNotice(_("Saved order of sections.") + " " +
_("Summary bar will refresh shortly.")); _("Summary bar will refresh shortly."));
} else { } else {
addFormError(_("Unsupported")); //addFormError(_("Unsupported"));
} }
} }

View File

@ -17,7 +17,7 @@ import net.i2p.util.Log;
* property is retrieved - either getAll(), getNotices() or getErrors(). * property is retrieved - either getAll(), getNotices() or getErrors().
* *
*/ */
public class FormHandler { public abstract class FormHandler {
protected RouterContext _context; protected RouterContext _context;
protected Log _log; protected Log _log;
protected Map _settings; protected Map _settings;