-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add alert and hide upload view when no upload is possible #2966
Add alert and hide upload view when no upload is possible #2966
Conversation
Aside from a few errors that would need correction*, I'm pretty sure that message will never show, because the quota will never be reached exactly to the bit. The idea is good though! Maybe a warning when below a certain percentage of the quota would be nice instead. *you are using |
Yes I thought about the quota, and it would be nice to display it. But this PR is not really about used quota, it's about the option None - no upload possible selected by the admin for a user as bellow : It's a specific case, when the user has no quota at all for a reason like having a user only to comment and no uploads. I suggest to make the used quota warning in another PR with the display quota as |
Can you add a link to ping the instance mod in case you want more help/appeal the quota? |
Thanks for your comment, you mean a link to the about page where contact form is when enabled ? it you the contact form is disabled what would you suggest to display ? EDIT: Or maybe, each user would have the hability to contact the admin ? @rigelk ? |
@kimsible users should be able to contact the admin, yes. |
@kimsible thanks. Yes. What I am saying is, What I am suggesting is "Sorry, the upload feature is disabled for your account. Click here to contact the admin for help." This "here" could open the "contact administrator" form that shows up on the stat page https://peertube2.cpy.re/about/instance This would probably be a small papercut improvement but I do forsee the need for it. I could be wrong, maybe the team here can deliberate on this ? |
I suggest we redirect the button to the about page, because we miss the case some instance do not have the admin form enabled. What do you think @test2a ? |
@kimsible much improvement. Thanks. Thats the gist of what i was thinking. Now, a user who is seeing unable to upload any videos gets sent to a page explaining rules. Thanks for the efforts you guys put into the software. You are awesome. ?-) |
ad39c7a
to
804ddba
Compare
client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts
Outdated
Show resolved
Hide resolved
804ddba
to
0c999ef
Compare
} | ||
|
||
// cannot upload but has already some videos | ||
if (this.videosCount > 0) { |
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.
@Chocobozzz we have an issue here, it seems videosCount
is always undefined in this context
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.
Because we don't compute videosCount
in the /me
endpoint. I'll update this PR
4e1f3eb
to
1c7398d
Compare
When user video quota or daily upload limit are set to
None - no upload possible
, an alert should inform that upload is disabled for the account and the form view not displayed once clicked on theUpload button
and accessing to/videos/upload
.This PR proposes a way to alert the user and hide the upload form in this case :