Skip to content

Commit

Permalink
update date-picker component
Browse files Browse the repository at this point in the history
  • Loading branch information
lozjackson committed Nov 25, 2016
1 parent bc88537 commit 889dd0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/components/tt-date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,15 @@ export default Ember.Component.extend(ClickOutsideMixin, SetPositionMixin, {
},

/**
@method prevYear
@method prevDecade
*/
prevDecade() {
let { decade: { start }, month } = this.getProperties('decade', 'month');
this.set('viewDate.date', `${ parseInt(start) - 10 }/${ month + 1 }/1`);
},

/**
@method nextYear
@method nextDecade
*/
nextDecade() {
let { decade, month } = this.getProperties('decade', 'month');
Expand Down

0 comments on commit 889dd0b

Please sign in to comment.