-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add functionality to the Modify button on My Demos page #272
Comments
At present, using the available code on the page, I connected the button click action to the modal (relevant code snippets below):
and
This results in the modal window showing properly like so: The following question remains:
|
The popup you are seeing was used in the previous version of Origami. In this version, instead of the popup, the modify button should redirect the user to a page similar to the create demos page, but the input fields should be prefilled with the demo information. The submit button should be changed to save or modify. To prefill the demo information you'll have to get the demo info from the database. The demo info is stored in the |
Do we need to get the demo information from the database? Because this information is already available in the state object and other React variables. For example, on the "My Demos" page, if I do:
I'm able to see the information related to the demo. |
@Caffetaria sure you can use them.But i dont think you will have all the demo information like |
If we go to nonGHUserProfile.js and do a console.log like so:
we can see what appears to be all of the information created on the create demo page. |
So my current plan is to create a screen that allows the user to modify the above mentioned object. Then I will call on the function named 'updateNonGHDemoModel' in 'nonghDemoModelAction.js'. The 'updateNonGHDemoModel' expects a parameter called "newModelData" ... I'm guessing that this is a Javascript object. Please let me know if this is a good direction to try. |
You would want to call the |
Hi my name is Aarushi Soni . I want to contribute to this issue . Is this issue still open ? I am first time contributor . Please guide me through this process. |
Description
The Modify button on My Demos page does not work.
Expected Behavior
On clicking the Modify button of a demo, the user should be redirected to the appropriate page where the the user can make changes to the content and specifications of that demo.
Actual Behavior
On clicking the Modify button of a demo, the user is not redirected to any page.
Steps to Reproduce the Problem
Thanks!
The text was updated successfully, but these errors were encountered: