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

Close the share dialogue when performing another action #545

Closed
oparoz opened this issue Mar 1, 2016 · 9 comments · Fixed by #613
Closed

Close the share dialogue when performing another action #545

oparoz opened this issue Mar 1, 2016 · 9 comments · Fixed by #613

Comments

@oparoz
Copy link
Contributor

oparoz commented Mar 1, 2016

Bug report

Steps to reproduce

  1. Open the share dialogue
  2. Click on an album

or

  1. Open the share dialogue
  2. Click on the info button

Expected behaviour

The share dialogue should close

Actual behaviour

The share dialogue stay open

@oparoz oparoz added the bug label Mar 1, 2016
@oparoz oparoz self-assigned this Mar 1, 2016
@oparoz oparoz added this to the 9.0-current milestone Mar 1, 2016
@ghost ghost modified the milestones: 9.0.1-next-maintenance, 9.0-current Mar 2, 2016
@virajparimi
Copy link
Contributor

I would like to work on this one. Could you guide me as to in which file changes are to be made.

@oparoz
Copy link
Contributor Author

oparoz commented Mar 3, 2016

Well, the first step is to determine what is wrong.

Basically, when _openAlbum is called, all the dialogues, including the share dialogue should be closed and it's not the case.

So should this method be modified or is there another way?

@virajparimi
Copy link
Contributor

Should we use hideDropDown function when _openAlbum is called.

@oparoz
Copy link
Contributor Author

oparoz commented Mar 3, 2016

I think that's the method to call, yes.
There is another problem though, the share dialogue also stays open when clicking on the info button (enabled when there is a description. See https://github.com/owncloud/gallery/wiki/Gallery-configuration#album-presentation).

So maybe we should use this instead:
https://github.com/owncloud/gallery/blob/master/js/app.js#L41-L43

@virajparimi
Copy link
Contributor

I have figured out the solution and it is working fine. Shall i send a pull request.

@oparoz
Copy link
Contributor Author

oparoz commented Mar 4, 2016

Please do. That way we I and other can test the solution :).
Note: Always create the PR against master.

@oparoz oparoz changed the title Close the share dialogue when opening an album Close the share dialogue when performing another action Mar 4, 2016
@DeepDiver1975 DeepDiver1975 assigned virajparimi and unassigned oparoz Mar 12, 2016
@oparoz oparoz assigned virajparimi and unassigned oparoz Mar 12, 2016
oparoz added a commit that referenced this issue Mar 14, 2016
Close the share dialogue when performing another action, fixes #545
@oparoz
Copy link
Contributor Author

oparoz commented Mar 15, 2016

@viraj96 - There is a regression.

That's not available in the Files app:
https://github.com/owncloud/gallery/blob/master/js/slideshow.js#L95-L96

So the call should be made in the method which calls show()

@oparoz oparoz reopened this Mar 15, 2016
@virajparimi
Copy link
Contributor

So, can I add it here -->.

@oparoz
Copy link
Contributor Author

oparoz commented Mar 16, 2016

Yes, right at the end should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment