Merge pull request #5423 from JDonadio/bug/timeline
Fix timeline item order
This commit is contained in:
commit
dafd46c3a2
4 changed files with 10 additions and 2 deletions
|
|
@ -56,6 +56,10 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
|
||||||
by: action.copayerName
|
by: action.copayerName
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.actionList.reverse();
|
||||||
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
function checkPaypro() {
|
function checkPaypro() {
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,10 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
||||||
time: $scope.btx.time,
|
time: $scope.btx.time,
|
||||||
description: actionDescriptions['broadcasted'],
|
description: actionDescriptions['broadcasted'],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.actionList.reverse();
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.showCommentPopup = function() {
|
$scope.showCommentPopup = function() {
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="actionList[0]">
|
<div ng-if="actionList[0]">
|
||||||
<div class="item item-divider" translate>Timeline</div>
|
<div class="item item-divider" translate>Timeline</div>
|
||||||
<div class="item timeline-item" ng-class="{'action-created' : a.type == 'created' || a.type == 'accept', 'action-rejected' : a.type == 'reject'}" ng-repeat="a in actionList | orderBy: 'time' :true track by $index">
|
<div class="item timeline-item" ng-class="{'action-created' : a.type == 'created' || a.type == 'accept', 'action-rejected' : a.type == 'reject'}" ng-repeat="a in actionList track by $index">
|
||||||
<div class="timeline-content">
|
<div class="timeline-content">
|
||||||
<div class="timeline-content__icon">
|
<div class="timeline-content__icon">
|
||||||
<div class="rejected" ng-if="a.type === 'reject'">!</div>
|
<div class="rejected" ng-if="a.type === 'reject'">!</div>
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="actionList[0]">
|
<div ng-if="actionList[0]">
|
||||||
<div class="item item-divider" translate>Timeline</div>
|
<div class="item item-divider" translate>Timeline</div>
|
||||||
<div class="item timeline-item" ng-class="{'action-created' : a.type == 'created' || a.type == 'accept', 'action-rejected' : a.type == 'reject'}" ng-repeat="a in actionList | orderBy: 'time' :true track by $index">
|
<div class="item timeline-item" ng-class="{'action-created' : a.type == 'created' || a.type == 'accept', 'action-rejected' : a.type == 'reject'}" ng-repeat="a in actionList track by $index">
|
||||||
<div class="timeline-content">
|
<div class="timeline-content">
|
||||||
<div class="timeline-content__icon">
|
<div class="timeline-content__icon">
|
||||||
<div class="rejected" ng-if="a.type === 'reject'">!</div>
|
<div class="rejected" ng-if="a.type === 'reject'">!</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue