mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Removing some garbage, adding admin link
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
Darkswarm.controller "AccountSidebarCtrl", ($scope, $http, $location, SpreeUser, Navigation) ->
|
||||
$scope.path = "/account"
|
||||
Navigation.paths.push $scope.path
|
||||
|
||||
$scope.active = ->
|
||||
$location.path() == $scope.path
|
||||
|
||||
$scope.select = ->
|
||||
Navigation.navigate($scope.path)
|
||||
|
||||
$scope.emptyCart = (href, ev)->
|
||||
if $(ev.delegateTarget).hasClass "empties-cart"
|
||||
location.href = href if confirm "Changing your Hub will clear your cart."
|
||||
else
|
||||
location.href = href
|
||||
@@ -1,2 +0,0 @@
|
||||
Darkswarm.controller "SidebarCtrl", ($scope, $location, Sidebar) ->
|
||||
$scope.Sidebar = Sidebar
|
||||
Reference in New Issue
Block a user