show dashboard notice if forum is running in dev mode

This commit is contained in:
psychobunny
2017-02-23 12:14:20 -05:00
parent a2847dc851
commit 458cbfd603
2 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,14 @@ dashboardController.get = function (req, res, next) {
link:'/admin/extend/plugins'
}
];
if (global.env !== 'production') {
notices.push({
done: false,
notDoneText: '[[admin/general/dashboard:running-in-development]]'
});
}
plugins.fireHook('filter:admin.notices', notices, next);
}
}, function (err, results) {