fix ui problem with ordering code

This commit is contained in:
Rich Lott / Artful Robot 2025-02-28 10:06:45 +00:00
parent 4835a01aee
commit bcbf5de9c4

View file

@ -47,7 +47,7 @@
ng-click="$ctrl.moveIdx = null" > ng-click="$ctrl.moveIdx = null" >
<i class="fa-circle-xmark crm-i"></i> {{ts('Cancel Move')}} <i class="fa-circle-xmark crm-i"></i> {{ts('Cancel Move')}}
</button> </button>
<button ng-click="$ctrl.moveTo(idx+1)" ng-show="$ctrl.moveIdx !== null && (idx === 0 && $ctrl.moveIdx > 0)" ><i class="fa-sort-up crm-i" ></i>{{ts('Before this')}}</button> <button ng-click="$ctrl.moveTo(idx)" ng-show="$ctrl.moveIdx !== null && (idx === 0 && $ctrl.moveIdx > 0)" ><i class="fa-sort-up crm-i" ></i>{{ts('Before this')}}</button>
<button ng-click="$ctrl.moveTo(idx+1)" ng-show="$ctrl.moveIdx !== null && row.search_type !== 'default' && (idx + 1 < $ctrl.moveIdx || idx > $ctrl.moveIdx)"><i class="fa-sort-down crm-i" ></i>{{ts('After this')}}</button> <button ng-click="$ctrl.moveTo(idx+1)" ng-show="$ctrl.moveIdx !== null && row.search_type !== 'default' && (idx + 1 < $ctrl.moveIdx || idx > $ctrl.moveIdx)"><i class="fa-sort-down crm-i" ></i>{{ts('After this')}}</button>
</span> </span>
</div> </div>