Move the code that hides the split order button from js to css

This commit is contained in:
luisramos0
2019-02-26 12:34:07 +00:00
parent 15456577a3
commit 37685c8107
3 changed files with 6 additions and 4 deletions

View File

@@ -24,7 +24,3 @@ angular.module("admin.orders").controller "orderCtrl", ($scope, shops, orderCycl
for shop in $scope.shops
shop.disabled = !$scope.distributorHasOrderCycles(shop)
# 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
$('.split-item').hide()

View File

@@ -16,4 +16,5 @@
@import 'variables';
@import 'components/*';
@import 'pages/*';
@import '*';

View File

@@ -0,0 +1,5 @@
// 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;
}