Component cleanup (dropping sortable table)

+ remove `sortable-table`
+ remove `sortable-table-header`
+ remove `characteristic-index-row`
+ remove `species-index-row`
+ remove `strain-index-row`
This commit is contained in:
Matthew Dillon 2015-06-29 07:19:20 -08:00
parent 2cca773f57
commit 33e7b92a8c
19 changed files with 100 additions and 137 deletions

View file

@ -1,5 +0,0 @@
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'tr',
});

View file

@ -1,6 +0,0 @@
<td>
{{data.characteristicName}}
</td>
<td>
{{data.characteristicType.characteristicTypeName}}
</td>

View file

@ -1,13 +0,0 @@
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'th',
upArrow: '&#9650',
downArrow: '&#9660',
actions: {
sortBy: function(sortProperty, ascending) {
this.sendAction('action', sortProperty, ascending);
}
},
});

View file

@ -1,3 +0,0 @@
{{title}}
<span {{action 'sortBy' sortProperty true}}>{{{upArrow}}}</span>
<span {{action 'sortBy' sortProperty false}}>{{{downArrow}}}</span>

View file

@ -1,14 +0,0 @@
import Ember from 'ember';
export default Ember.Component.extend(Ember.SortableMixin, {
tagName: 'table',
classNames: ['flakes-table'],
sortProperties: [],
actions: {
sortBy: function(property, ascending) {
this.set('sortAscending', ascending);
this.set('sortProperties', [property]);
}
},
});

View file

@ -1,13 +0,0 @@
<thead>
<tr>
{{#each tableAttrs as |a|}}
{{sortable-table-header title=a.name sortProperty=a.attr action="sortBy"}}
{{/each}}
</tr>
</thead>
<tbody>
{{#each arrangedContent as |item|}}
{{component row data=item}}
{{/each}}
</tbody>

View file

@ -1,5 +0,0 @@
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'tr',
});

View file

@ -1,15 +0,0 @@
<td>
<em>
{{#link-to 'species.show' data}}
{{data.speciesName}}
{{/link-to}}
</em>
</td>
<td>
{{#each data.strains as |strain index|}}
{{if index ","}}
{{#link-to 'strains.show' strain.id}}
{{{strain.strainNameMU}}}
{{/link-to}}
{{/each}}
</td>

View file

@ -1,5 +0,0 @@
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'tr',
});

View file

@ -1,8 +0,0 @@
<td>
{{#link-to 'strains.show' data.id classBinding="data.typeStrain:type-strain"}}
{{data.fullNameMU}}
{{/link-to}}
</td>
<td>
{{data.totalMeasurements}}
</td>