balanced/balanced-dashboard

View on GitHub
app/views/form-fields/search-date-picker.js

Summary

Maintainability
A
1 hr
Test Coverage
import DatePickerView from './date-picker';

var SearchDatePickerView = DatePickerView.extend({
    _changeDateFilter: function(label) {
        var maxTime = new Date(this.get('maxTime'));
        var minTime = new Date(this.get('minTime'));
        this.get('parentView').send('changeDateFilter', minTime, maxTime, label);
    }
});

export default SearchDatePickerView;