-
Notifications
You must be signed in to change notification settings - Fork 6
fixed the issue to accept 0 and null and changed the default text value to remaining downloads #69
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
…ue to remaining downloads Signed-off-by: Yogesh Shejwadkar <[email protected]>
e32161f to
1bf86a3
Compare
Signed-off-by: Yogesh Shejwadkar <[email protected]>
come-nc
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.
Why is null needed? The same thing seems to be done for 0 or null, so it would be better if null was turned into 0 before calling the method.
| title: t('files_downloadlimit', 'Download count: {count}', this._store), | ||
| value: this._store.limit, | ||
| title: t('files_downloadlimit', 'Downloads: {count}', this._store), | ||
| value: this._store.limit ? this._store.limit - this._store.count : this._store.limit, |
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 am not sure this change makes sense, the label says download limit so it should show the limit, not something else.
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.
It makes sense because the remaining downloads is the current download limit. To show the initial download limit one week later to the customer does not deliver any new information to the user because he may remember the initial download limit or can calculate it with the download counter. It is more helpful to tell the user the current download limit to enable him to decide if he wants to increase it or not.
Signed-off-by: Yogesh Shejwadkar <[email protected]>
Signed-off-by: Yogesh Shejwadkar <[email protected]>
|
Please run |
|
@come-nc @TSI-yogeshshejwadkar what is the change – can I get before/after screenshots? Thanks! :) |
@jancborchardt
|
…file having allow resharing permissions Signed-off-by: Yogesh Shejwadkar <[email protected]>
|
@come-nc @skjnldsv @jancborchardt @juliushaertl |
|
If #77 is ruled as a yes then I am for merging this. |
|
Please wait for #76 first too. |
Already handled by #79 |


Use case for null value - If I remove existing value from the text box, the download limit should get removed for that particular share.
Use case for 0 value - If I put 0 or change the existing value to 0, then the download limit should get removed for that particular share.