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