-
Notifications
You must be signed in to change notification settings - Fork 579
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
Use ModuleMessage component everywhere #750
Conversation
@sbwalker I just refactor the File Manager to you use the proposed alert component, if sound good to you I can refactor all the places to use the new component |
A component already exists for this functionality - the ModuleMessage component. It is used throughout the UI already- usually by calling the AddModuleMessage helper method - but also as a standard component. |
I didn't know about it, let me check ... |
@sbwalker it's ready from my side, just one question why you create a |
@hishamco the SetModuleMessage() method is only intended to be used in one specific case - when a module developer calls the AddModuleMessage() helper which then needs to traverse to the ModuleInstance parent component and set the Message/Type properties on its ModuleMessage component. There may be a better way to implement this. Regardless, in all other cases the ModuleMessage component should be used in the standard way - by setting the parameter values directly and not using the SetModuleMessage() method. Make sense? |
I did that at the beginning but I got some warnings when I set the parameters directly, let me change it in all the places |
Done!! |
No description provided.