mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +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) {
|
function updateTopicsGraph(topics) {
|
||||||
if (!topics.length) {
|
if (!topics.length) {
|
||||||
topics = [{
|
translator.translate('[[admin/dashboard:no-users-browsing]]', function (translated) {
|
||||||
title: '[[admin/dashboard:no-users-browsing]]',
|
topics = [{
|
||||||
count: 1,
|
title: translated,
|
||||||
}];
|
count: 1,
|
||||||
|
}];
|
||||||
|
updateTopicsGraph(topics);
|
||||||
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
graphs.topics.data.labels = [];
|
graphs.topics.data.labels = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user