This PR address the issue brought up in #7 by @Antimcom.
It basically looks to see if this is a singular relationship from a HasOne, BelongsTo, or MorphOne on the model. And based on that determines if title should be something like "Widget 1" if plural or "Widget" if singular. This affects both the detail and form components.
Key lines to notes for this PR:
RelationshipDetailItem.vue lines 32, 63, and 88-92
RelationshipFormItem.vue lines 19, and 93-97
DetailField.vue line 18
The rest of the lines in this PR are reformatting.
This PR address the issue brought up in #7 by @Antimcom.
It basically looks to see if this is a singular relationship from a
HasOne
,BelongsTo
, orMorphOne
on the model. And based on that determines if title should be something like "Widget 1" if plural or "Widget" if singular. This affects both the detail and form components.Key lines to notes for this PR:
RelationshipDetailItem.vue
lines 32, 63, and 88-92RelationshipFormItem.vue
lines 19, and 93-97DetailField.vue
line 18The rest of the lines in this PR are reformatting.