Added button to motion detail view to follow recommendation. Closed #2700.

This commit is contained in:
Norman Jäckel 2016-12-02 14:57:45 +01:00
parent dc0559ef38
commit 49dca65640

View File

@ -170,6 +170,15 @@
</button> </button>
</span> </span>
</div> </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> </div>
<!-- Category --> <!-- Category -->