Fix suppliers switcher component
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
App.SuppliersSwitcherComponent = Ember.Component.extend
|
||||
classNames: ['suppliers-switcher-container']
|
||||
suppliers: (-> @get('targetObject.store').all 'supplier').property()
|
||||
other_suppliers: ( -> @get('suppliers').rejectBy 'id', @get('targetObject.controllers.application.supplier.id')).property('suppliers.@each')
|
||||
other_suppliers: ( -> @get('suppliers').rejectBy 'id', @get('current_supplier.id')).property('suppliers.@each')
|
||||
current_supplier: Ember.computed.alias 'targetObject.controllers.application.supplier'
|
||||
actions:
|
||||
switchTo: (locale)->
|
||||
setLocale locale
|
||||
|
||||
Reference in New Issue
Block a user