mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
Fixes #6261
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:
@@ -48,6 +48,7 @@ dashboardController.get = function (req, res, next) {
|
||||
version: nconf.get('version'),
|
||||
notices: results.notices,
|
||||
stats: results.stats,
|
||||
canRestart: !!process.send,
|
||||
});
|
||||
},
|
||||
], next);
|
||||
|
||||
Reference in New Issue
Block a user