forked from I2P_Developers/i2p.i2p
Console: fix router family page form (ticket #2022)
This commit is contained in:
@ -24,7 +24,7 @@ public class ConfigFamilyHandler extends FormHandler {
|
|||||||
@Override
|
@Override
|
||||||
protected void processForm() {
|
protected void processForm() {
|
||||||
|
|
||||||
if (_action.equals(_t("Create New Router Family"))) {
|
if (_action.equals(_t("Create Family"))) {
|
||||||
String family = getJettyString("family");
|
String family = getJettyString("family");
|
||||||
String old = _context.getProperty(FamilyKeyCrypto.PROP_FAMILY_NAME);
|
String old = _context.getProperty(FamilyKeyCrypto.PROP_FAMILY_NAME);
|
||||||
if (family == null || family.trim().length() <= 0) {
|
if (family == null || family.trim().length() <= 0) {
|
||||||
@ -39,7 +39,7 @@ public class ConfigFamilyHandler extends FormHandler {
|
|||||||
} else {
|
} else {
|
||||||
addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs"));
|
addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs"));
|
||||||
}
|
}
|
||||||
} else if (_action.equals(_t("Join Existing Router Family"))) {
|
} else if (_action.equals(_t("Join Family"))) {
|
||||||
InputStream in = _requestWrapper.getInputStream("file");
|
InputStream in = _requestWrapper.getInputStream("file");
|
||||||
try {
|
try {
|
||||||
// non-null but zero bytes if no file entered, don't know why
|
// non-null but zero bytes if no file entered, don't know why
|
||||||
@ -92,7 +92,7 @@ public class ConfigFamilyHandler extends FormHandler {
|
|||||||
// it's really a ByteArrayInputStream but we'll play along...
|
// it's really a ByteArrayInputStream but we'll play along...
|
||||||
try { in.close(); } catch (IOException ioe) {}
|
try { in.close(); } catch (IOException ioe) {}
|
||||||
}
|
}
|
||||||
} else if (_action.equals(_t("Leave Router Family"))) {
|
} else if (_action.equals(_t("Leave Family"))) {
|
||||||
List<String> removes = new ArrayList<String>();
|
List<String> removes = new ArrayList<String>();
|
||||||
removes.add(FamilyKeyCrypto.PROP_FAMILY_NAME);
|
removes.add(FamilyKeyCrypto.PROP_FAMILY_NAME);
|
||||||
removes.add(FamilyKeyCrypto.PROP_KEY_PASSWORD);
|
removes.add(FamilyKeyCrypto.PROP_KEY_PASSWORD);
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
2017-07-31 str4d
|
||||||
|
* Console: fix router family page form (ticket #2022)
|
||||||
|
|
||||||
2017-07-30 str4d
|
2017-07-30 str4d
|
||||||
* Console
|
* Console
|
||||||
- light theme:
|
- light theme:
|
||||||
|
Reference in New Issue
Block a user