forked from I2P_Developers/i2p.i2p
* Console: Don't display 'unsupported' message on some config pages when restart/shutdown buttons clicked
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user