console: Hide cancel graceful shutdown button unless we are shutting down

This commit is contained in:
zzz
2015-03-08 20:23:00 +00:00
parent 0972b6b56a
commit c7d1d2b69a
4 changed files with 18 additions and 2 deletions

View File

@ -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;