-
Notifications
You must be signed in to change notification settings - Fork 6
Fix public handling of limited shares #76
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
Conversation
Signed-off-by: John Molakvoæ <[email protected]>
|
@skjnldsv Maybe it would make sense to prevent all right-click options when the counter is at null? |
I would even do that even if the counter is not null as there is the download button already. |
sounds good! you are welcome :) |
Signed-off-by: John Molakvoæ <[email protected]>
|
Done, please review 🙏 |
szaimen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apart from that looks good to me but didn't test it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment was marked as resolved.
This comment was marked as resolved.
szaimen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for all the other options i the sharing menu, this would have to be in https://github.com/nextcloud/server/blob/da435b1e67930e85fc30fd1b94c6214caa086f4f/apps/files_sharing/src/components/SharingEntryLink.vue#L128-L132 |
Signed-off-by: John Molakvoæ <[email protected]>
|
All other issues addressed, please review @szaimen :) |
on it |
szaimen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I can confirm that all other issues are fixed :) |
Will be fixed in followup then, to support null and 0 values (see #69, wwhich I will re-adapt) |
okay |
szaimen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go from my side then :)
| let count = limit - downloads | ||
| let clicks = 0 | ||
|
|
||
| const updateCounter = function(span) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing count parameter no?
|
|
||
| span.style = 'color: var(--color-primary-text); padding: 0 10px;' | ||
| span.innerText = n('files_downloadlimit', '1 remaining download allowed', '{count} remaining downloads allowed', count, { count }) | ||
| updateCounter(span, count) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or extra count parameter here, not clear, it seems count is actually global
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's cleaner, you're right, let me fix in a pr :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.




Fix #43
Fix #8
cc @TSI-yogeshshejwadkar