Finishing off the merge with localStorage refactoring with sekrets

This commit is contained in:
Will Marshall
2014-06-04 17:22:10 +10:00
parent 3c21ce8d99
commit 69e5459afd
3 changed files with 21 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
Darkswarm.factory 'Order', ($resource, order, $http, Flash, Navigation, storage)->
Darkswarm.factory 'Order', ($resource, order, $http, flash, Navigation, storage)->
new class Order
errors: {}
secrets: {}
@@ -24,7 +24,8 @@ Darkswarm.factory 'Order', ($resource, order, $http, Flash, Navigation, storage)
Navigation.go data.path
.error (response, status)=>
@errors = response.errors
Flash.loadFlash(response.flash)
flash.error = response.flash?.error
flash.success = response.flash?.notice
# Rails wants our Spree::Address data to be provided with _attributes
preprocess: ->