Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added support for month
  • Loading branch information
rrc12004 committed Apr 1, 2019
1 parent e13e5be commit 8914343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/visualize-all/visualize-all.component.html
Expand Up @@ -31,6 +31,7 @@
<select id="time_type_select" name="timeTypeSelect">
<option value="" disabled selected>Select Time Type</option>
<option value="year">Years</option>
<option value="month">Months</option>
<option value="day">Days</option>
<option value="hour">Hours</option>
<option value="minute">Minutes</option>
Expand Down
2 changes: 2 additions & 0 deletions src/app/visualize-all/visualize-all.component.ts
Expand Up @@ -89,6 +89,8 @@ export class VisualizeAllComponent implements OnInit {
let timeTypeVal = '';
if (timeTypeVals[0] === 'year') {
timeTypeVal = 'y-ago';
} else if (timeTypeVals[0] === 'month') {
timeTypeVal = 'n-ago';
} else if (timeTypeVals[0] === 'day') {
timeTypeVal = 'd-ago';
} else if (timeTypeVals[0] === 'hour') {
Expand Down

0 comments on commit 8914343

Please sign in to comment.