Add reputation attribute to FalukantCharacter model and update related services and views
- Introduced a new 'reputation' attribute in the FalukantCharacter model with a default value and validation. - Updated FalukantService to include 'reputation' in character attributes for API responses. - Enhanced ReputationView component to display current reputation and load it from the API. - Added translations for reputation in both German and English locales.
This commit is contained in:
@@ -372,7 +372,7 @@ class FalukantService extends BaseService {
|
||||
{ model: TitleOfNobility, as: 'nobleTitle', attributes: ['labelTr', 'id'] },
|
||||
{ model: CharacterTrait, as: 'traits', attributes: ['id', 'tr'] }
|
||||
],
|
||||
attributes: ['id', 'birthdate', 'gender', 'moodId', 'health']
|
||||
attributes: ['id', 'birthdate', 'gender', 'moodId', 'health', 'reputation']
|
||||
},
|
||||
{
|
||||
model: UserHouse,
|
||||
@@ -496,7 +496,7 @@ class FalukantService extends BaseService {
|
||||
{
|
||||
model: FalukantCharacter,
|
||||
as: 'character',
|
||||
attributes: ['birthdate', 'health'],
|
||||
attributes: ['birthdate', 'health', 'reputation'],
|
||||
include: [
|
||||
{
|
||||
model: Relationship,
|
||||
|
||||
Reference in New Issue
Block a user