You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove Projects from the sidebar if there are no Projects #977
Similar to the removal of the Projects tab if there are no projects, I think we should remove the Projects section in the issue/PR sidebar if there are no projects to select there.
There are both repository and organisation projects in there so we should check the contents of the selector instead of using the number of projects in the repo as we do for the repository tab.
You cannot create Projects from that selector so there's no reason you would need it unless you already have projects created.
Should produce "no projects", and 3 times (for every tab).
Would be cool to know why, but Ill do this with api calls. I believe you're not supposed to use it, although it's already there- in extension.
organizations by default restrict access to third party api calls pertaining to them, so determining if user actually has projects to assign isn't guaranteed, at which point I'd query if user can edit the issue to begin with and end it there- while determining if it there're projects assigned. Would be nice to know how it is that you can't select elements in projects.
Activity
lukaszklis commentedon Jan 11, 2018
Sounds good to me, shall I open a PR for this? :)
hkdobrev commentedon Jan 11, 2018
@lukaszklis Go for it! :)
IssueHuntBot commentedon Apr 11, 2019
@IssueHunt has funded $40.00 to this issue.
janat08 commentedon Apr 16, 2019
For whatever reason items under projects, and other sidebar menus aren't really selectable.
Should produce "no projects", and 3 times (for every tab).
Would be cool to know why, but Ill do this with api calls. I believe you're not supposed to use it, although it's already there- in extension.
janat08 commentedon Apr 21, 2019
organizations by default restrict access to third party api calls pertaining to them, so determining if user actually has projects to assign isn't guaranteed, at which point I'd query if user can edit the issue to begin with and end it there- while determining if it there're projects assigned. Would be nice to know how it is that you can't select elements in projects.
IssueHuntBot commentedon May 6, 2019
@sindresorhus has rewarded $36.00 to @bfred-it. See it on IssueHunt