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
|
const years = counters
|
||||||
.map(counter => {
|
.map(counter => {
|
||||||
const year = new Date(counter.start_time);
|
const year = new Date(counter.start_time);
|
||||||
return year.getUTCFullYear();
|
return year.getUTCFullYear().toString();
|
||||||
})
|
})
|
||||||
.uniq();
|
.uniq();
|
||||||
years.sort().reverse();
|
years.sort().reverse();
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<option value="All" selected={{eq timeWindow "All"}}>All</option>/>
|
<option value="All" selected={{eq timeWindow "All"}}>All</option>/>
|
||||||
<option value="Last 12 Months" selected={{eq timeWindow "Last 12 Months"}}>Last 12 Months</option>
|
<option value="Last 12 Months" selected={{eq timeWindow "Last 12 Months"}}>Last 12 Months</option>
|
||||||
{{#each options as |op|}}
|
{{#each options as |op|}}
|
||||||
<option value={{op}} selected={{eq timeWindow.value op}}>{{op}}</option>
|
<option value={{op}} selected={{eq timeWindow op}}>{{op}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue