Open Closed

Error MessageBox Override #5906


User avatar
0
Fabio.Zinesi created
  • ABP Framework version: v7.3.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

How can I override the error message box?

I need to show the error inside a <div> instead of the modal message.

How can I do it?


1 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    Error messages created with ConfirmService. if you want to override. you should replace the service with Angular Dependency Injection system.

    https://docs.abp.io/en/abp/7.3/UI/Angular/Confirmation-Service

    the code: https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/theme-shared/src/lib/services/confirmation.service.ts

    Or if you want to change how to handle error , you can https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/theme-shared/src/lib/services/router-error-handler.service.ts

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