mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Customize text if totalRows not known
This commit is contained in:
		| @@ -371,7 +371,12 @@ function customGroupSorter(sortName, sortOrder, sortData) { | ||||
|             return `${pageNumber} {% trans "rows per page" %}`; | ||||
|         }, | ||||
|         formatShowingRows: function(pageFrom, pageTo, totalRows) { | ||||
|             return `{% trans "Showing" %} ${pageFrom} {% trans "to" %} ${pageTo} {% trans "of" %} ${totalRows} {% trans "rows" %}`; | ||||
|  | ||||
|             if (totalRows === undefined || totalRows === NaN) { | ||||
|                 return '{% trans "Showing all rows" %}'; | ||||
|             } else { | ||||
|                 return `{% trans "Showing" %} ${pageFrom} {% trans "to" %} ${pageTo} {% trans "of" %} ${totalRows} {% trans "rows" %}`; | ||||
|             } | ||||
|         }, | ||||
|         formatSearch: function() { | ||||
|             return '{% trans "Search" %}'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user