forked from I2P_Developers/i2p.i2p
change pw restart warning to error so people dont miss it
This commit is contained in:
@ -87,7 +87,7 @@ public class ConfigUIHandler extends FormHandler {
|
|||||||
if (!_context.getBooleanProperty(RouterConsoleRunner.PROP_PW_ENABLE))
|
if (!_context.getBooleanProperty(RouterConsoleRunner.PROP_PW_ENABLE))
|
||||||
_context.router().saveConfig(RouterConsoleRunner.PROP_PW_ENABLE, "true");
|
_context.router().saveConfig(RouterConsoleRunner.PROP_PW_ENABLE, "true");
|
||||||
addFormNotice(_("Added user {0}", name));
|
addFormNotice(_("Added user {0}", name));
|
||||||
addFormNotice(_("Restart required to take effect"));
|
addFormError(_("Restart required to take effect"));
|
||||||
} else {
|
} else {
|
||||||
addFormError(_("Error saving the configuration (applied but not saved) - please see the error logs."));
|
addFormError(_("Error saving the configuration (applied but not saved) - please see the error logs."));
|
||||||
}
|
}
|
||||||
@ -111,6 +111,6 @@ public class ConfigUIHandler extends FormHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (success)
|
if (success)
|
||||||
addFormNotice(_("Restart required to take effect"));
|
addFormError(_("Restart required to take effect"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user