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

Filepicker - hide empty create action box if creation is not allowed #28020

Closed
wants to merge 2 commits into from

Conversation

szaimen
Copy link
Contributor

@szaimen szaimen commented Jul 16, 2021

Fix #15966
Signed-off-by: szaimen szaimen@e.mail.de

@szaimen szaimen added the 2. developing Work in progress label Jul 16, 2021
@szaimen szaimen added this to the Nextcloud 23 milestone Jul 16, 2021
@szaimen szaimen force-pushed the enh/15966/empty-action-box-fix branch from 371168a to e501a89 Compare July 16, 2021 23:30
@szaimen szaimen force-pushed the enh/15966/empty-action-box-fix branch 2 times, most recently from 431eece to 3062070 Compare July 17, 2021 18:21
@@ -321,7 +321,7 @@ const Dialogs = {

var newButton = self.$filePicker.find('.actions.creatable .button-add')
if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) {
newButton.hide()
self.$filePicker.find('.actions.creatable').hide()
Copy link
Contributor Author

@szaimen szaimen Jul 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, none of those commands (neither the old nor the new) seem to have any effect in my testing so I really don't know how to fix this from the javascript side...

@szaimen szaimen force-pushed the enh/15966/empty-action-box-fix branch from 80a812e to fa61c98 Compare July 17, 2021 18:39
@szaimen
Copy link
Contributor Author

szaimen commented Jul 17, 2021

fa61c98 Fixes #15966 via CSS but has the unwanted side effect that it also changes the style of the button when the button is visible... (I unfortunately didn't find any solution that fixes the initial problem and this visual regression at the same time...)

CSS Solution for #15966

Before After
image image

New Problem after applying that css style change

Before After
image image

I don't think that its too bad but whats your opinion on that?

@szaimen szaimen added help wanted 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 17, 2021
@szaimen szaimen requested a review from julien-nc July 19, 2021 09:44
@skjnldsv skjnldsv mentioned this pull request Oct 13, 2021
@szaimen
Copy link
Contributor Author

szaimen commented Oct 22, 2021

/rebase

@skjnldsv skjnldsv modified the milestones: Nextcloud 23, Nextcloud 24 Oct 22, 2021
@skjnldsv skjnldsv mentioned this pull request Mar 24, 2022
@blizzz blizzz mentioned this pull request Mar 31, 2022
This was referenced Apr 7, 2022
@blizzz blizzz removed this from the Nextcloud 24 milestone Apr 21, 2022
@blizzz blizzz added this to the Nextcloud 25 milestone Apr 21, 2022
@szaimen
Copy link
Contributor Author

szaimen commented Jul 21, 2022

Superseded by #33297

@szaimen szaimen closed this Jul 21, 2022
@szaimen szaimen removed this from the Nextcloud 25 milestone Jul 21, 2022
@szaimen szaimen deleted the enh/15966/empty-action-box-fix branch July 21, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews help wanted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File picker dialog shows empty create action box
3 participants