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

Share button doesn't work any more #359

Closed
oparoz opened this issue Sep 18, 2015 · 7 comments
Closed

Share button doesn't work any more #359

oparoz opened this issue Sep 18, 2015 · 7 comments

Comments

@oparoz
Copy link
Contributor

oparoz commented Sep 18, 2015

The whole code we were using to show the share dialogue has been removed from core:
owncloud/core@41f16e8

When trying to replace it by using the new OC.Share.showDropDown(), I get this:

TypeError: this.fileInfoModel is undefined

so something is telling me it's only ready for Files and it's going to be way more complicated than that to get it to work in Gallery.

So I think we're going to have to remove the share dialogue from Gallery.

cc @PVince81 @jancborchardt @karlitschek

Note: the share dialogue in Pictures has been a hack from the start

@oparoz oparoz added the bug label Sep 18, 2015
@oparoz oparoz added this to the 8.2-current milestone Sep 18, 2015
@oparoz oparoz modified the milestones: 9.0-next, 8.2-current Sep 18, 2015
@PVince81
Copy link
Contributor

Either this or revert the changes in "share.js" in core to make sure that gallery, calendar and contacts are still able to use the old dialog.

But in a discussion with @DeepDiver1975 @rullzer @schiesbn it was decided that we should move the old code to each app instead of keeping it in core.

I'll have a try doing that with the calendar app as not everything from that file needs to be moved, and it might also need some namespacing.

@PVince81
Copy link
Contributor

On another note it might be possible to instantiate the ShareDialogView and append it into a dropdown to make it work with the new code.

@PVince81
Copy link
Contributor

The ShareDialogView should be usable for the gallery app as it's about sharing files.
In the case of calendar/contacts it might not be compatible, so that would be a situation where the old code should be moved as is.

@blizzz said he originally intended to make showDropDown work with the new dialog.
@blizzz can you have a look ?

@jancborchardt
Copy link
Member

Well, please make sure sharing still works in Gallery, Calendar and Contacts (etc) for 8.2 – either with dropdown or via sidebar.

@PVince81
Copy link
Contributor

Raised owncloud/core#19214 to make showDropDown work again for files

@oparoz oparoz modified the milestones: 8.2-current, 9.0-next Sep 21, 2015
@oparoz
Copy link
Contributor Author

oparoz commented Sep 21, 2015

Thanks @PVince81. I do think it would be nice to be able to use the new ShareDialogView as it would be less hackish and a first step towards using the right-sidebar :)

@oparoz
Copy link
Contributor Author

oparoz commented Sep 30, 2015

Fixed via #367

@oparoz oparoz closed this as completed Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants