Skip to content

Add file and add folder dialog can be opened at the same time #1003

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

Closed
Marton6 opened this issue Mar 28, 2019 · 8 comments · Fixed by #1602
Closed

Add file and add folder dialog can be opened at the same time #1003

Marton6 opened this issue Mar 28, 2019 · 8 comments · Fixed by #1602
Labels
Priority:Medium Moderately important, should be completed in a fair timeframe

Comments

@Marton6
Copy link
Contributor

Marton6 commented Mar 28, 2019

Nature of issue?

  • Found a bug

Details about the bug:

  • Web browser and version: On Chrome
  • Operating System: Linux and Windows
  • Steps to reproduce this bug:
    1. Click add folder option in the file navigator
    2. Click add file option in the file navigator

Being logged in makes this stand out even more since the add file dialog will be larger and partially visible under the add folder dialog.

It might be a good idea to disallow interaction with the rest of the page when a dialog is open or to dismiss the dialog when the user clicks outside of it. Similarly to the settings dialog.

@catarak
Copy link
Member

catarak commented Mar 28, 2019

thanks for reporting! i agree that the interaction with the add file/add folder dialogs is weird.

@catarak catarak added type:bug Priority:Medium Moderately important, should be completed in a fair timeframe labels Mar 28, 2019
@siddhant1
Copy link
Contributor

siddhant1 commented Apr 4, 2019

I agree on this as well , dialog boxes , dropdowns and modals should close on leaving focus

@shakeabi
Copy link

I think this can be implemented by adding a layer between the modal and the ide or by setting a state key and disabling the interactions with the interface. I believe that there exists a key already to denote whether a modal is open or not. Which method is better? @catarak

@catarak
Copy link
Member

catarak commented Apr 17, 2019

i think, also, these could be combined into one modal.

i think the way the modals being open/closed right now is not the best. it's stored in the redux store (which i don't think it should be), and i think it could be just in the component state.

@ashu8912
Copy link
Contributor

ashu8912 commented Feb 1, 2020

Yes @catarak modals are related to the ui state and all ui related state should live in the component itself and not in redux store.

@ashu8912
Copy link
Contributor

ashu8912 commented Feb 1, 2020

Will send a pr if you want to make these changes

@neelesh7singh
Copy link
Contributor

neelesh7singh commented Aug 29, 2020

@catarak what is understand is the new folder/file model should close whenever we click anywhere else, pluse the new file and new folder model should not be opened at the same time.
Is this correct??

@catarak
Copy link
Member

catarak commented Sep 2, 2020

@neelesh7singh that is correct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Medium Moderately important, should be completed in a fair timeframe
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants