mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-09-27 15:48:21 +00:00
console: Hide cancel graceful shutdown button unless we are shutting down
This commit is contained in:
@@ -183,6 +183,15 @@ public class ConfigServiceHandler extends FormHandler {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Should we show the cancel button?
|
||||
*
|
||||
* @since 0.9.19
|
||||
*/
|
||||
public boolean shouldShowCancelGraceful() {
|
||||
return _context.router().gracefulShutdownInProgress();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processForm() {
|
||||
if (_action == null) return;
|
||||
|
||||
Reference in New Issue
Block a user