Sha256: 3ce71021ae95cda7aaea0e8f83a48a36c737e4d29425e6ededbaced9b6ab3522
Contents?: true
Size: 663 Bytes
Versions: 18
Compression:
Stored size: 663 Bytes
Contents
class Apiv1.ProductsIndexController extends Ember.ObjectController queryParams: ["per", "page", "query", "ati"] per: 15 page: 1 query: null ati: [] +computed model.taxons.@each.parentId taxons: -> @get("model.taxons") +computed products.content.meta metadatum: -> @get("products.content.meta") +computed ati.@each, query, per, page products: -> @store.find("product", taxons: @ati, query: @query, per: @per, page: @page) +computed searchParams.searchQuery searchQuery: -> @get "searchParams.searchQuery" actions: search: (opts) -> @page = 1 @query = opts.searchQuery @ati = opts.activeTaxons.mapBy "id"
Version data entries
18 entries across 18 versions & 1 rubygems