update selected item on httprequestsdropdown (#7164)
This commit is contained in:
parent
0b32a3c501
commit
2c65f5d313
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue