|
|
@ -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 = [];
|
|
|
|