update selected item on httprequestsdropdown (#7164)

This commit is contained in:
Noelle Daley 2019-07-22 11:26:45 -07:00 committed by GitHub
parent 0b32a3c501
commit 2c65f5d313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export default Component.extend({
const years = counters
.map(counter => {
const year = new Date(counter.start_time);
return year.getUTCFullYear();
return year.getUTCFullYear().toString();
})
.uniq();
years.sort().reverse();

View File

@ -6,7 +6,7 @@
<option value="All" selected={{eq timeWindow "All"}}>All</option>/>
<option value="Last 12 Months" selected={{eq timeWindow "Last 12 Months"}}>Last 12 Months</option>
{{#each options as |op|}}
<option value={{op}} selected={{eq timeWindow.value op}}>{{op}}</option>
<option value={{op}} selected={{eq timeWindow op}}>{{op}}</option>
{{/each}}
</select>
</div>