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

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


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<IdentitySecurityLogDto>[];
    }>;
    export type AccountToolbarActionContributors = Partial<{
        [eAccountComponents.MySecurityLogs]: ToolbarActionContributorCallback<IdentitySecurityLogDto[]>[];
    }>;
    export type AccountEntityPropContributors = Partial<{
        [eAccountComponents.MySecurityLogs]: EntityPropContributorCallback<IdentitySecurityLogDto>[];
    }>;
    export type AccountEditFormPropContributors = Partial<{
        [eAccountComponents.PersonalSettings]: EditFormPropContributorCallback<ProfileDto>[];
    }>;
    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
    sinan created
    Support Team 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?

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07