mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Move countryStates service from ofn.admin to admin.utils to remove bad dependency from admin modules (customers and subscriptions) to main ofn.admin module. Now the dependency admin.utils is used instead
This commit is contained in:
@@ -1 +1 @@
|
||||
angular.module("admin.customers", ['ngResource', 'admin.tagRules', 'admin.indexUtils', 'admin.utils', 'admin.dropdown', 'ofn.admin'])
|
||||
angular.module("admin.customers", ['ngResource', 'admin.tagRules', 'admin.indexUtils', 'admin.utils', 'admin.dropdown'])
|
||||
|
||||
@@ -1 +1 @@
|
||||
angular.module("admin.subscriptions", ['ngResource','admin.indexUtils','admin.dropdown', 'ofn.admin'])
|
||||
angular.module("admin.subscriptions", ['ngResource','admin.indexUtils','admin.dropdown'])
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
angular.module("ofn.admin").factory "CountryStates", ($filter) ->
|
||||
angular.module("admin.utils").factory "CountryStates", ($filter) ->
|
||||
new class CountryStates
|
||||
|
||||
statesFor: (countries, country_id) ->
|
||||
@@ -10,7 +10,7 @@ describe "CountryStates service", ->
|
||||
]
|
||||
|
||||
beforeEach ->
|
||||
module('ofn.admin')
|
||||
module('admin.utils')
|
||||
inject (CountryStates) ->
|
||||
countryStates = CountryStates
|
||||
|
||||
Reference in New Issue
Block a user