Wrap all controller setup code with Client.onReady()
This ensures we don't rely on timing for execution against a non ready Client instance
This commit is contained in:
@@ -43,10 +43,6 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca
|
||||
});
|
||||
}
|
||||
|
||||
Client.onReady(function () {
|
||||
fetchEventLogs();
|
||||
});
|
||||
|
||||
$scope.showNextPage = function () {
|
||||
$scope.currentPage++;
|
||||
fetchEventLogs();
|
||||
@@ -62,4 +58,8 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca
|
||||
$scope.updateFilter = function () {
|
||||
fetchEventLogs();
|
||||
};
|
||||
|
||||
Client.onReady(function () {
|
||||
fetchEventLogs();
|
||||
});
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user