
PR: #1792
@tobiasKaminsky What kind of notification that the resharing is forbidden you see here?
I've been thinking about Snackbar or a Dialog but personally I think that Snackbar is better choice since it should be just a notification without any additional actions required.
It would look like on the screenshot below.
]
@tobiasKaminsky @vnidens Snackbar sounds good to me, also looking at the fact that #1198 whenever merged to master will also move many Toasts to Snackbars :)
@AndyScherzinger Great! In this case I continue to work on this issue and #1177
@vnidens awesome! So you mean code wise or mockup wise? (would love code wise 😀)
@mario @tobiasKaminsky FYI @vnidens works on this, so I hope you are fine with the chosen/discussed solution.
@AndyScherzinger Code wise for sure :)
Can you tell me how I should manage the new string resource (the Resharing is not allowed message) in terms of localization? Should I add translations or I can only add it into the main strings.xml file and then it would be handled by Transifex?
@vnidens nice! As for the translations, you only need to commit the main strings.xml and everything else will be handled automatically via our bot+transifex as soon as the PR has been merged to master.
:+1: looking forward to your contribution.
Happy to have you on board :-)
@AndyScherzinger @tobiasKaminsky While working on this issue I've noticed that the resharing is also possible from several file previews fragments (not only from the files list case you've mentioned).
I think it would be better to hide the "Share" menu completely in these fragments if the resharing isn't enabled. From my point of view it's much better to not have the menu than have one which can do nothing but show you the message "you can't do that" :)
My idea was to explain it to the user as it can happen that another account (on a different server) is allowed to share the file/folder and thus confuse the user.
But let us ask @nextcloud/designers how to proceed
(I am also fine with removing the share entry if resharing is disabled)
I'd also say remove it if resharing is forbidden but let hear what the designers say :)
I'd also say remove it if resharing is forbidden but let hear what the designers say :)
Yep - I would just not show it.
Even better (if possible) might be to show it greyed out and change the text from »Share« to »Not allowed to share«? Or just have it greyed out and show a snackbar with further info on click.
Just not showing it is missing feedback, and will also be confusing since people don’t know why.
Just not showing it is missing feedback, and will also be confusing since people don’t know why.
This was exactly what I said in https://github.com/nextcloud/android/issues/1176#issuecomment-319009614, but @AndyScherzinger and @MorrisJobke voted for not showing.
Well, I am also fine with showing the info that it can't be shared (for the bugfix release after the next stable) while I don't know if (being a user) I would want to click share just to realize that I can't / am not allowed to.
@tobiasKaminsky yes, with the important distinction that the »Share« text needs to be greyed out, otherwise it seems active/clickable.
@AndyScherzinger Yep – the greying out is an indicator that it’s not really available / clickable. If it’s clicked anyway, you get feedback why. :)
Where should be the greyed out shared text?
In the overflow menu when selecting a file/folder?
In the "share" popup?

In the overflow menu.
The share menu should not show, cause you can't use it, right? (Or can you share the link?) cc @schiessle
Instead of the sharing dialog, tapping the greyed out "Share" text should show a toast/snackbar saying smth like "You don't have permissions to share this file".
I see everyone agreed to still keep the menu but grey it out and show a message that the action isn't allowed.
I would update the behavior in the near future.
@vnidens yes, that contribution would be very welcome! :)
@vnidens that would be really great 🚀
@jancborchardt @AndyScherzinger @tobiasKaminsky After some digging it seems that it's impossible to change view/background of an individual ActionBar/Toolbar menu - you can only apply theme to all menu items at once.
So the final solution would look like an ordinary "Share" menu item which shows Snackbar with warning.
PS. If you do know the way to update the view of the individual menu item just give me a tip
@AndyScherzinger can you help here as you are our ui master? ;-)
So the final solution would look like an ordinary "Share" menu item which shows Snackbar with warning.
@jancborchardt are you fine with this?
Sounds ok, yes.
Most helpful comment
I see everyone agreed to still keep the menu but grey it out and show a message that the action isn't allowed.
I would update the behavior in the near future.