Handle sorting the Greek and Ulb texts
This commit is contained in:
parent
d861a6a470
commit
cecfce8597
|
@ -1,5 +1,5 @@
|
||||||
<div class="verse-greek-text">
|
<div class="verse-greek-text">
|
||||||
{{#each @model as |word|}}
|
{{#each this.sortedWords as |word|}}
|
||||||
<Words::GreekWord @model={{word}} />
|
<Words::GreekWord @model={{word}} />
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
|
@ -0,0 +1,7 @@
|
||||||
|
import Component from '@glimmer/component';
|
||||||
|
import { sort } from '@ember/object/computed';
|
||||||
|
|
||||||
|
export default class WordsGreekTextComponent extends Component {
|
||||||
|
sortDefinition = ['ogntSort'];
|
||||||
|
@sort('args.model', 'sortDefinition') sortedWords;
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
import Component from '@glimmer/component';
|
||||||
|
import { sort } from '@ember/object/computed';
|
||||||
|
|
||||||
|
export default class WordsUlbTextComponent extends Component {
|
||||||
|
sortDefinition = ['ulbSort'];
|
||||||
|
@sort('args.model', 'sortDefinition') sortedWords;
|
||||||
|
}
|
Loading…
Reference in New Issue