timeline update: displaying load more button;
This commit is contained in:
1 parent
11bcea1091
commit
f2816229ff
2 files changed
+6
-1
No files matched your search
@@ -67,6 +67,11 @@ module.exports = function(app) {
|
|||||||
return i['type'];
|
return i['type'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.showFooter = function () {
|
||||||
|
var canLoadMore = true;
|
||||||
|
return $scope.feed && $scope.feed.length && canLoadMore;
|
||||||
|
};
|
||||||
|
|
||||||
$scope.loadNext = function () {
|
$scope.loadNext = function () {
|
||||||
$scope.timelineUpdating = true;
|
$scope.timelineUpdating = true;
|
||||||
usSpinnerService.spin("timelineMore");
|
usSpinnerService.spin("timelineMore");
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
ng-class="{left: isEven($index), right: !isEven($index)}">
|
ng-class="{left: isEven($index), right: !isEven($index)}">
|
||||||
|
|
||||||
</timeline-record>
|
</timeline-record>
|
||||||
<div class="timeline-footer">
|
<div class="timeline-footer" ng-show="showFooter()">
|
||||||
<button class="more"
|
<button class="more"
|
||||||
ng-click="loadNext()"
|
ng-click="loadNext()"
|
||||||
ng-disabled="timelineUpdating">
|
ng-disabled="timelineUpdating">
|
||||||
|
|||||||
Reference in new issue
Block a user