balanced/balanced-dashboard

View on GitHub
app/controllers/marketplace/customers.js

Summary

Maintainability
A
2 hrs
Test Coverage
import Ember from "ember";

var MarketplaceCustomersController = Ember.ObjectController.extend({
    needs: ['marketplace'],
    noDownloadsUri: true,
    resultsLoader: Ember.computed.oneWay("model"),
    actions: {
        changeSortOrder: function(column) {
            this.get("resultsLoader").setSortField(column);
        },
        changeDateFilter: function(startTime, endTime) {
            this.get("resultsLoader").setProperties({
                endTime: endTime,
                startTime: startTime
            });
        },
    }
});

export default MarketplaceCustomersController;