mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-24 05:38:52 +00:00
Move the code that hides the split order button from js to css
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -16,4 +16,5 @@
|
||||
|
||||
@import 'variables';
|
||||
@import 'components/*';
|
||||
@import 'pages/*';
|
||||
@import '*';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user