If a connection to the parent process is not detected, disable
the restart and reload buttons (as they won't work anyway).
This commit is contained in:
Julian Lam
2018-01-19 13:24:00 -05:00
parent 947c81adf0
commit ac2e185e34
3 changed files with 12 additions and 8 deletions

View File

@@ -48,6 +48,7 @@ dashboardController.get = function (req, res, next) {
version: nconf.get('version'),
notices: results.notices,
stats: results.stats,
canRestart: !!process.send,
});
},
], next);