Fixed motion slide not showing any diffs

This commit is contained in:
FinnStutzenstein 2018-04-06 14:24:52 +02:00
parent ba579637bd
commit 75e0955a29

View File

@ -36,16 +36,18 @@ angular.module('OpenSlidesApp.motions.projector', [
}, function () { }, function () {
$scope.change_recommendations = []; $scope.change_recommendations = [];
$scope.title_change_recommendation = null; $scope.title_change_recommendation = null;
MotionChangeRecommendation.filter({ if ($scope.motion) {
'where': {'motion_version_id': {'==': id}} MotionChangeRecommendation.filter({
}).forEach(function(change) { 'where': {'motion_version_id': {'==': $scope.motion.active_version}}
if (change.isTextRecommendation()) { }).forEach(function(change) {
$scope.change_recommendations.push(change); if (change.isTextRecommendation()) {
} $scope.change_recommendations.push(change);
if (change.isTitleRecommendation()) { }
$scope.title_change_recommendation = change; if (change.isTitleRecommendation()) {
} $scope.title_change_recommendation = change;
}); }
});
}
}); });
} }
]); ]);