diff --git a/public/src/forum/admin/index.js b/public/src/forum/admin/index.js index 2dfcc720c7..b6f6ed147d 100644 --- a/public/src/forum/admin/index.js +++ b/public/src/forum/admin/index.js @@ -37,6 +37,17 @@ define('forum/admin/index', function() { }); $('.restart').on('click', function() { + app.alert({ + timeout: 5000, + title: 'Restarting...', + message: 'NodeBB is restarting.', + type: 'info' + }); + + $(window).one('action:reconnected', function() { + app.alertSuccess('NodeBB has successfully restarted.'); + }); + socket.emit('admin.restart'); });