Commit 54be7c80 authored by benjaminParisel's avatar benjaminParisel Committed by GitHub

defect(reorder): Disable down arrow if page assets is last (#2725)

parent a9f78cb7
......@@ -34,7 +34,7 @@
ng-click="incrementOrderAsset({'asset': asset})"
title="{{ 'Move asset down' | translate }}"
ng-if="vm.isPageAsset(asset) && vm.type.orderable"
ng-disabled="$last || vm.assetAlreadyOnMove || searchTerm">
ng-disabled="!vm.isPageAsset(results[$index + 1]) || vm.assetAlreadyOnMove || searchTerm">
<i class="fa fa-arrow-down"></i>
</button>
<button class="btn btn-bonita-asset" ng-click="decrementOrderAsset({'asset': asset})"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment