We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f34948 commit d1d53d1Copy full SHA for d1d53d1
www/addons/mod/data/controllers/index.js
@@ -191,7 +191,7 @@ angular.module('mm.addons.mod_data')
191
}
192
}).then(function(entries) {
193
var numEntries = (entries && entries.entries && entries.entries.length) || 0;
194
- $scope.isEmpty = !numEntries && Object.keys($scope.offlineActions).length <= 0;
+ $scope.isEmpty = !numEntries && !Object.keys($scope.offlineActions).length && !Object.keys($scope.offlineEntries).length;
195
$scope.hasNextPage = numEntries >= mmaModDataPerPage && (($scope.search.page + 1) * mmaModDataPerPage) < entries.totalcount;
196
$scope.entriesRendered = "";
197
0 commit comments