mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix(acp): #9009 no-users-browsing untranslated on dashboard
This commit is contained in:
@@ -500,10 +500,14 @@ define('admin/dashboard', ['Chart', 'translator', 'benchpress'], function (Chart
|
||||
|
||||
function updateTopicsGraph(topics) {
|
||||
if (!topics.length) {
|
||||
translator.translate('[[admin/dashboard:no-users-browsing]]', function (translated) {
|
||||
topics = [{
|
||||
title: '[[admin/dashboard:no-users-browsing]]',
|
||||
title: translated,
|
||||
count: 1,
|
||||
}];
|
||||
updateTopicsGraph(topics);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
graphs.topics.data.labels = [];
|
||||
|
||||
Reference in New Issue
Block a user