-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix default quota display value in user row #23711
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
Fix default quota display value in user row #23711
Conversation
| if (quota === -3) { | ||
| quota = 'none' |
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.
| if (quota === -3) { | |
| quota = 'none' | |
| if (quota === -3 || quota === 'none') { | |
| return t('settings', 'Unlimited') |
Merge the two?
skjnldsv
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.
Nice! 🚀
A small comment, good otherwise 😉
|
ah yes, my master was not up to date... sorry little bot... fixing |
When selecting default quota in the dropdown, the actual numeric value or "Unlimited" will be displayed instead of "0 B". This matches whatever is displayed after refreshing the page. In the case where the default quota is unlimited, for which the server returns -3 instead of "none", the frontend now also shows "Unlimited" instead of "0 B". Signed-off-by: Vincent Petry <[email protected]>
cc45a11 to
66ce56e
Compare
|
@skjnldsv I've simplified even further, mind having a second look ? |
skjnldsv
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.
Perfect! 👍
|
/backport to stable20 |
|
The backport to stable20 failed. Please do this backport manually. |
on it... all you need to do is recompile everything |
|
stable20 backport here: #23726 took me a while as I'm often confused at the weird juggling that is happening in the "js/*" folders... |
|
@PVince81 Keep in mind to remove the backport-request label after the backport was opened. In this way we can go over the PRs that still have this label to find pending backports. |
When selecting default quota in the dropdown, the actual numeric value
or "Unlimited" will be displayed instead of "0 B". This matches whatever
is displayed after refreshing the page.
In the case where the default quota is unlimited, for which the server
returns -3 instead of "none", the frontend now also shows "Unlimited"
instead of "0 B".
Fixes #21085