FIX: Fix ESLint issues and use d-icon instead of <i> tags
This commit is contained in:
parent
d5d933c2a8
commit
5a75b6c1e1
|
@ -120,11 +120,12 @@ export default Ember.Controller.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
sortByProperty(property) {
|
sortByProperty(property) {
|
||||||
if (this.sortBy == `${property}:desc`){
|
if (this.sortBy[0] === `${property}:desc`) {
|
||||||
this.set('sortBy', [`${property}:asc`]);}
|
this.set('sortBy', [`${property}:asc`]);
|
||||||
else {
|
} else {
|
||||||
this.set('sortBy', [`${property}:desc`]);
|
this.set('sortBy', [`${property}:desc`]);
|
||||||
}},
|
}
|
||||||
|
},
|
||||||
|
|
||||||
create() {
|
create() {
|
||||||
const name = this.get("newQueryName").trim();
|
const name = this.get("newQueryName").trim();
|
||||||
|
|
|
@ -148,15 +148,15 @@
|
||||||
<table class="recent-queries">
|
<table class="recent-queries">
|
||||||
<thead class="heading-container">
|
<thead class="heading-container">
|
||||||
<th {{action "sortByProperty" "name"}} class="col heading name">
|
<th {{action "sortByProperty" "name"}} class="col heading name">
|
||||||
<i class="fa fa-sort"></i>
|
{{d-icon "sort"}}
|
||||||
{{i18n 'explorer.query_name'}}
|
{{i18n 'explorer.query_name'}}
|
||||||
</th>
|
</th>
|
||||||
<th {{action "sortByProperty" "username"}} class="col heading user">
|
<th {{action "sortByProperty" "username"}} class="col heading user">
|
||||||
<i class="fa fa-sort"></i>
|
{{d-icon "sort"}}
|
||||||
{{i18n 'explorer.query_user'}}
|
{{i18n 'explorer.query_user'}}
|
||||||
</th>
|
</th>
|
||||||
<th {{action "sortByProperty" "last_run_at"}} class="col heading time">
|
<th {{action "sortByProperty" "last_run_at"}} class="col heading time">
|
||||||
<i class="fa fa-sort"></i>
|
{{d-icon "sort"}}
|
||||||
{{i18n 'explorer.query_time'}}
|
{{i18n 'explorer.query_time'}}
|
||||||
</th>
|
</th>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
Loading…
Reference in New Issue