feat(Director): add autoAdjustIncome feature and enhance director data handling
All checks were successful
Deploy to production / deploy (push) Successful in 1m54s
All checks were successful
Deploy to production / deploy (push) Successful in 1m54s
- Introduced a new boolean field `autoAdjustIncome` in the Director model to manage income adjustments automatically. - Updated the FalukantService to include `autoAdjustIncome` in director data responses and settings management. - Enhanced the DirectorInfo component to allow users to toggle the `autoAdjustIncome` setting. - Updated internationalization files to include translations for the new feature across multiple languages.
This commit is contained in:
@@ -427,7 +427,8 @@ export default {
|
||||
params.threshold_percent = base.threshold_percent;
|
||||
}
|
||||
const isDirectorResign = base.event === 'director_resignation_risk_high'
|
||||
|| (typeof base.tr === 'string' && base.tr.includes('director.resignation'));
|
||||
|| base.event === 'director_resigned'
|
||||
|| (typeof base.tr === 'string' && (base.tr.includes('director.resignation') || base.tr.includes('director.resigned')));
|
||||
if (isDirectorResign) {
|
||||
params.directorName = params.characterName
|
||||
|| base.character_name
|
||||
|
||||
Reference in New Issue
Block a user