Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PO-UPLOAD - Adicionar customização para erros de restrictions #2199

Open
jonathan-ssouza-totvs opened this issue Aug 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jonathan-ssouza-totvs
Copy link

Descrição da melhoria

Seria interessante poder customizar o tratamento de erros de restrictions no po-upload, podendo disparar algum evento ou algo do tipo.

Caso de uso

Gostaria de exibir uma mensagem padrão e/ou com o toastr de warning ou error ao inves de info

Informações adicionais

Imagino que poderiam existir uma property:
p-hide-restrictions-notification (default false) - esta propriedade não exibiria o toastr de info que é exibido hoje

E um event-emitter:
(p-restrictions-error)='EventEmitter' - que seria disparado quando ocorrer um erro de restrictions

@jonathan-ssouza-totvs jonathan-ssouza-totvs added the enhancement New feature or request label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant