I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit fa0b52fc authored by zzz's avatar zzz
Browse files

* Console: Don't display 'unsupported' message on some config pages when...

 * Console: Don't display 'unsupported' message on some config pages when restart/shutdown buttons clicked
parent f9f13910
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@ public class ConfigClientsHandler extends FormHandler {
startWebApp(app);
}
} else {
addFormError(_("Unsupported") + ' ' + _action + '.');
//addFormError(_("Unsupported") + ' ' + _action + '.');
}
}
......
......@@ -99,7 +99,7 @@ public class ConfigHomeHandler extends FormHandler {
}
HomeHelper.saveApps(_context, prop, apps, !("3".equals(group)));
} else {
addFormError(_("Unsupported"));
//addFormError(_("Unsupported"));
}
}
}
......@@ -46,7 +46,7 @@ public class ConfigKeyringHandler extends FormHandler {
}
}
} else {
addFormError(_("Unsupported"));
//addFormError(_("Unsupported"));
}
}
......
......@@ -60,7 +60,7 @@ public class ConfigPeerHandler extends FormHandler {
} else if (_action.startsWith("Check")) {
addFormError(_("Unsupported"));
} else {
addFormError("Unknown action \"" + _action + '"');
//addFormError(_("Unsupported") + ' ' + _action + '.');
}
}
......
......@@ -31,7 +31,7 @@ public class ConfigReseedHandler extends FormHandler {
saveChanges();
return;
}
addFormError(_("Unsupported") + ' ' + _action + '.');
//addFormError(_("Unsupported") + ' ' + _action + '.');
}
/** @since 0.8.9 */
......
......@@ -25,6 +25,7 @@ public class ConfigRestartBean {
return _systemNonce;
}
/** this also initiates the restart/shutdown based on action */
public static String renderStatus(String urlBase, String action, String nonce) {
RouterContext ctx = ContextHelper.getContext(null);
String systemNonce = getNonce();
......
......@@ -137,7 +137,7 @@ public class ConfigSummaryHandler extends FormHandler {
addFormNotice(_("Saved order of sections.") + " " +
_("Summary bar will refresh shortly."));
} else {
addFormError(_("Unsupported"));
//addFormError(_("Unsupported"));
}
}
......
......@@ -17,7 +17,7 @@ import net.i2p.util.Log;
* property is retrieved - either getAll(), getNotices() or getErrors().
*
*/
public class FormHandler {
public abstract class FormHandler {
protected RouterContext _context;
protected Log _log;
protected Map _settings;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment