Merge pull request #2726 from normanjaeckel/FollowRecommendationButton

Added button to motion detail view to follow recommendation. Closed #…
This commit is contained in:
Emanuel Schütze 2016-12-02 15:40:33 +01:00 committed by GitHub
commit 4c37fd8e62

View File

@ -170,6 +170,15 @@
</button>
</span>
</div>
<button
ng-if="motion.recommendation &&
motion.isAllowed('change_state') &&
motion.state.next_states_id.indexOf(motion.recommendation.id) !== -1"
ng-click="updateState(motion.recommendation.id)"
class="btn btn-default btn-sm">
<i class="fa fa-magic"></i>
<translate>Follow recommendation</translate>
</button>
</div>
<!-- Category -->