-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove confusing placeholder in Sharing Settings #20605
Conversation
@jancborchardt I think you said you'd rather have 7 be a default but do you think this is okay? |
Yeah, I would still say it’s good if there is a default suggestion, and for that to be 7. :) Otherwise everyone who wants to use this would have to check the checkmark and then put in a number. With a default, if you think 7 is reasonable (which we decided it often is) then it’s just one enabling click. |
If I understand correctly, you want the following When I first click on "set default expiration date for link shares" I get this If I got this right, we run into the problem stated in #19806, analoguous to the current version with the placeholder. It looks like the default value is 7 even though the "7" is just a suggestion. |
The problem in that issue is: |
@jancborchardt I pushed a new commit according to your indications. If no value is set and "Set default expiration date for link shares" is ticked, values is set to 7 and updated on the server I used jQuery's |
What happens if you remove the value? It’s just set to 7 again? It’s a bit strange of an interaction – it would be better to just leave the placeholder of "7" there, and if it’s empty use 7 as value. But don’t fill it in the field. |
I see your point. What about whenever value is emptied by user, instead of a placeholder, '7' is placed back in the field and sent to the server ? Or do you really prefer the placeholder ?
|
Yup, a placeholder is preferred, as it’s weird behavior to fill a field with a value when people didn’t put it in. :) A placeholder will communicate it much better. |
Signed-off-by: Matthias Beaupère <matthias.beaupere@gmail.com>
@jancborchardt
Note that if the box is ticked without any value, and then page is reloaded, the value will be |
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.
Seems good design-wise now. :) cc @skjnldsv for server
@@ -79,15 +79,24 @@ $(document).ready(function(){ | |||
value = 'no'; | |||
} | |||
} | |||
if ((this.id === 'shareapiExpireAfterNDays' || this.id === 'shareapiInternalExpireAfterNDays') && value === '') { | |||
value = '7' |
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 guess we have an available value for this somewhere? Hardcoded numbers like those should be avoided
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 agree, however I couldn't find any constant for this. Do you have any pointer on where to add this ?
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.
Sorry, I missed this comment.
Maybe in the capabilities?
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.
@matthiasbe any update here? :)
As there is no feedback since a while I will close this PR. If you are still willing to get this in, please address the potential comments and rebase to latest master. Then, feel free to re-open. |
Hello, sorry I didn't give any update. After a while it's hard to get back into the code. Closing is the best thing to do for now, thanks. |
Hi,
I would like to provide a solution for issue #19806
I am new on this project, as a quick introduction I just installed the server at home and found it wounderful. As I know a bit of web development I would like to help improving it.
Best
Matthias