Fix split button reappearing when editing line item quantity

This commit is contained in:
luisramos0
2019-04-02 21:54:13 +01:00
parent 9c99e64f1f
commit ea52600fc5
2 changed files with 5 additions and 5 deletions

View File

@@ -24,3 +24,8 @@ angular.module("admin.orders").controller "orderCtrl", ($scope, shops, orderCycl
for shop in $scope.shops
shop.disabled = !$scope.distributorHasOrderCycles(shop)
# Removes the split button introduced by spree in the order form
# We only have one stock location in OFN so it's meaningless to split the order between stock locations
# We delete it instead of hiding or changing CSS so that, when spree code toggles the element, nothing hapens
$('.split-item').remove()

View File

@@ -1,5 +0,0 @@
// Hides the split button introduced by spree in the order form
// We only have one stock location in OFN so it's meaningless to split the order between stock locations
table td.actions [class*='icon-'].split-item {
display: none;
}