Open Closed

Account manage edit form contribute #5845


User avatar
0
linhhn@arius.vn created
  • ABP Framework version: v7.3.2

  • UI Type: Angular

  • Database System: EF Core MySQL

  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

  • Exception message and full stack trace:

  • Steps to reproduce the issue:

I have added extra properties for users according to the document below
https://docs.abp.io/en/abp/latest/UI/Angular/Dynamic-Form-Extensions
image.png

However, in the account management screen, extra properties cannot be translated
How can we fix this problem?

image.png


4 Answer(s)
  • User Avatar
    0
    jfistelmann created

    Hey,

    I would guess that this is because of the different localization resource.

    does this help?
    https://support.abp.io/QA/Questions/857/Overriding-localization-text-of-Abp-modules

  • User Avatar
    0
    linhhn@arius.vn created
    import { EditFormPropContributorCallback, EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.theme.shared/extensions';
    import { eAccountComponents } from '../enums/components';
    import { IdentitySecurityLogDto } from '@volo/abp.commercial.ng.ui/config';
    import { ProfileDto } from '@volo/abp.ng.account/public/proxy';
    export type AccountEntityActionContributors = Partial<{
        [eAccountComponents.MySecurityLogs]: EntityActionContributorCallback[];
    }>;
    export type AccountToolbarActionContributors = Partial<{
        [eAccountComponents.MySecurityLogs]: ToolbarActionContributorCallback[];
    }>;
    export type AccountEntityPropContributors = Partial<{
        [eAccountComponents.MySecurityLogs]: EntityPropContributorCallback[];
    }>;
    export type AccountEditFormPropContributors = Partial<{
        [eAccountComponents.PersonalSettings]: EditFormPropContributorCallback[];
    }>;
    export interface AccountConfigOptions {
        redirectUrl?: string;
        entityActionContributors?: AccountEntityActionContributors;
        toolbarActionContributors?: AccountToolbarActionContributors;
        entityPropContributors?: AccountEntityPropContributors;
        isPersonalSettingsChangedConfirmationActive?: boolean;
    }
    

    @volo\abp.ng.account\public\models\config-options.d.ts
    In config options I am seeing AccountEditFormPropContributors not being used

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hello,

    • I've created an internal issue for config-options model and I've refunded your credit.

    • Also We'll make sure why extra property's label not localized. If there is a bug we'll create another issue for that I'll give you feedback 🙂

  • User Avatar
    0
    alper created
    Angular Developer

    Hi linhhn, we have added AccountEditFormPropContributors and new props can be added without localization problem.
    It will be usable in 7.4 final.

    But i couldn't add new field as a extra property therefore i couldn't produce localization problem on extra properties, can you help me on producing the problem?

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10