mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Syncing up the email addresses between the SpreeUser tabs
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
window.ForgotSidebarCtrl = Darkswarm.controller "ForgotSidebarCtrl", ($scope, $http, $location) ->
|
||||
$scope.spree_user = {
|
||||
email: null
|
||||
}
|
||||
window.ForgotSidebarCtrl = Darkswarm.controller "ForgotSidebarCtrl", ($scope, $http, $location, SpreeUser) ->
|
||||
$scope.spree_user = SpreeUser.spree_user
|
||||
|
||||
$scope.active = ->
|
||||
$location.path() == '/forgot'
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
window.LoginSidebarCtrl = Darkswarm.controller "LoginSidebarCtrl", ($scope, $http, $location) ->
|
||||
$scope.spree_user = {
|
||||
remember_me: 0
|
||||
}
|
||||
window.LoginSidebarCtrl = Darkswarm.controller "LoginSidebarCtrl", ($scope, $http, $location, SpreeUser) ->
|
||||
$scope.spree_user = SpreeUser.spree_user
|
||||
|
||||
$scope.active = ->
|
||||
$location.path() == '/login'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
window.SignupSidebarCtrl = Darkswarm.controller "SignupSidebarCtrl", ($scope, $http, $location) ->
|
||||
$scope.spree_user = {}
|
||||
window.SignupSidebarCtrl = Darkswarm.controller "SignupSidebarCtrl", ($scope, $http, $location, SpreeUser) ->
|
||||
$scope.spree_user = SpreeUser.spree_user
|
||||
$scope.errors =
|
||||
email: null
|
||||
password: null
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
Darkswarm.factory 'SpreeUser', ($resource) ->
|
||||
new class SpreeUser
|
||||
spree_user: {
|
||||
remember_me: 0
|
||||
email: null
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
active: "active()",
|
||||
select: "select()"}
|
||||
|
||||
{{ spree_user.email }}
|
||||
%form{"ng-submit" => "submit()"}
|
||||
.alert-box.alert{"ng-show" => "errors != null"}
|
||||
{{ errors }}
|
||||
|
||||
Reference in New Issue
Block a user