Hide 'Add new' action link from 'Channels' section in profile when channel creation is disabled
Steps to reproduce
- As instance admin, disable Channel creation under
/manage/settings#channels
- Go to your profile
/@username
- Click on 'Add new'
What happens?
The 'Add channel' modal is shown with an error:
An unknown error occurred, ensure your are connected to the internet and your funkwhale instance is up and running
What is expected?
The 'Add new' action link is hidden from the Channel section in the user profile is hidden. And ideally, the whole section in the user profile is hidden if a) creating new channels is disabled and b) the user doesn't have any channels.
Context
Funkwhale version(s) affected: develop (I'm on Docker - version seems no longer printed as the whole footer isn't there. Should I create a separate issue for this?)