Fix some malformed property names

This commit is contained in:
Leonard Smith 2020-10-07 11:32:58 -05:00
parent 2b029b8116
commit 59e7598e7d
5 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
<tr data-strongs={{@model.strongs_number}} class="{{this.selected}}" ...attributes>
<tr data-strongs={{@model.strongsNumber}} class="{{this.selected}}" ...attributes>
<td>{{@model.greek}}</td>
<td>{{@model.ulb}}</td>
<td>{{@model.morph}}</td>

View File

@ -2,8 +2,8 @@ import Model, { attr, hasMany, belongsTo } from '@ember-data/model';
export default class VerseModel extends Model {
@attr name;
@attr greek_text;
@attr ulb_text;
@attr greekText;
@attr ulbText;
@attr reference;
@belongsTo('chapter') chapter;

View File

@ -5,8 +5,10 @@ export default class WordModel extends Model {
@attr greek;
@attr lemma;
@attr morph;
@attr ognt_sort;
@attr strongs_number;
@attr ogntSort;
@attr strongsNumber;
@belongsTo('verse') verse;
@belongsTo('lexical-entry') lexicalEntry;
}

View File

@ -13,10 +13,10 @@ export default class WordSelectService extends Service {
}
isCurrentByOgntId(word) {
return word.ognt_sort == this.currentWord.ognt_sort;
return word.ogntSort == this.currentWord.ogntSort;
}
isCurrentByStrongsNumber(word) {
return word.strongs_number == this.currentWord.strongs_number
return word.strongsNumber == this.currentWord.strongsNumber
}
}

View File

@ -5,7 +5,7 @@
<h4>Greek</h4>
<p><Words::GreekText @model={{model.words}} /></p>
<h4>ULB</h4>
<p>{{model.ulb_text}}</p>
<p>{{model.ulbText}}</p>
</div>
</div>
<div class="row">