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 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();

View file

@ -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>