equal
deleted
inserted
replaced
24 } |
24 } |
25 |
25 |
26 return Ember.String.htmlSafe(date.getDate() + '-' + (date.getMonth() + 1) + '-' + date.getFullYear()); |
26 return Ember.String.htmlSafe(date.getDate() + '-' + (date.getMonth() + 1) + '-' + date.getFullYear()); |
27 }, |
27 }, |
28 shortDateDate: Ember.computed('value', function () { |
28 shortDateDate: Ember.computed('value', function () { |
29 console.log('SHORT DATE', this.get('value')); |
|
30 return this.formatDate(this.get('value')); |
29 return this.formatDate(this.get('value')); |
31 }), |
30 }), |
32 periodMatches: Ember.computed('value', function () { |
31 periodMatches: Ember.computed('value', function () { |
33 let dateStr = this.get('value'); |
32 let dateStr = this.get('value'); |
34 |
|
35 console.log('PERIOD MATCH', dateStr); |
|
36 |
33 |
37 if (!dateStr) { |
34 if (!dateStr) { |
38 return null; |
35 return null; |
39 } |
36 } |
40 dateStr = dateStr.trim(); |
37 dateStr = dateStr.trim(); |
64 }; |
61 }; |
65 |
62 |
66 }), |
63 }), |
67 isPeriod: Ember.computed('periodMatches', function () { |
64 isPeriod: Ember.computed('periodMatches', function () { |
68 const periodMatches = this.get('periodMatches'); |
65 const periodMatches = this.get('periodMatches'); |
69 console.log('ISPERIOD MATCH', periodMatches, Boolean(periodMatches)); |
66 |
70 return Boolean(periodMatches); |
67 return Boolean(periodMatches); |
71 }), |
68 }), |
72 shortDateStart: Ember.computed('periodMatches', function () { |
69 shortDateStart: Ember.computed('periodMatches', function () { |
73 const periodMatches = this.get('periodMatches'); |
70 const periodMatches = this.get('periodMatches'); |
74 |
71 |