mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
Adding indexing by user id
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Darkswarm.controller "CheckoutCtrl", ($scope, storage, CheckoutFormState, Order, CurrentUser) ->
|
||||
$scope.Order = Order
|
||||
storage.bind $scope, "Order.order", {storeName: "order_#{Order.order.id}"}
|
||||
storage.bind $scope, "Order.order", {storeName: "order_#{Order.order.id}#{Order.order.user_id}"}
|
||||
$scope.order = Order.order # Ordering is important
|
||||
|
||||
$scope.enabled = if CurrentUser then true else false
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
object current_order
|
||||
attributes :id, :email, :shipping_method_id
|
||||
attributes :id, :email, :shipping_method_id, :user_id
|
||||
|
||||
node :display_total do
|
||||
current_order.display_total.money.to_f
|
||||
|
||||
Reference in New Issue
Block a user