<!--
Please fill out this issue template to report a bug.
If you want to propose a new feature, please open a discussion thread in the forum: https://community.vikunja.io
-->
**Version information:**
Frontend Version: dev
API Version: dev
Browser and OS Version: all
**Steps to reproduce:**
<!--
Add clear steps to reproduce the bug. Provide screenshots where applicable.
-->
1. Don't be in any team
2. Open the team share modal
**Expected behavior:**
<!--
Describe what happened.
-->
The 'Shared with these teams' area is not shown
**Actual behavior:**
<!--
Describe what happened instead.
-->
The 'Shared with these teams' is shown. See screenshot:

**Checklist:**
* [x] I have provided all required information
* [x] I am using the latest release or the latest unstable build
* [x] I was able to reproduce the bug on [try](https://try.vikunja.io)
I see it as a bug, since the user is shown some control elements that don't have functionality for him, aka are broken.
I thought that removing the controls completely would be the best choice if the user isn't part of any team because it seems to indicate that the installation is for a single-user only, thus no teams necessary. Showing the UI in this case might be confusing or distracting / congesting the ui.
In case I oversaw something and there could be other reasons why there is no team available we could disable the UI instead and inform that the user needs to be in a team in order to share it with one.
I see it as a bug, since the user is shown some control elements that don't have functionality for him, aka are broken.
I thought that removing the controls completely would be the best choice if the user isn't part of any team because it seems to indicate that the installation is for a single-user only, thus no teams necessary. Showing the UI in this case might be confusing or distracting / congesting the ui.
In case I oversaw something and there could be other reasons why there is no team available we could disable the UI instead and inform that the user needs to be in a team in order to share it with one.
Version information:
Frontend Version: dev
API Version: dev
Browser and OS Version: all
Steps to reproduce:
Expected behavior:
The 'Shared with these teams' area is not shown
Actual behavior:
The 'Shared with these teams' is shown. See screenshot:
Checklist:
So the "Shared with these teams" area should not be shown if the user is not in any team?
I wouldn't consider this a bug but a UX-improvement.
I see it as a bug, since the user is shown some control elements that don't have functionality for him, aka are broken.
I thought that removing the controls completely would be the best choice if the user isn't part of any team because it seems to indicate that the installation is for a single-user only, thus no teams necessary. Showing the UI in this case might be confusing or distracting / congesting the ui.
In case I oversaw something and there could be other reasons why there is no team available we could disable the UI instead and inform that the user needs to be in a team in order to share it with one.