Skip to content

Remove Projects from the sidebar if there are no Projects #977

Closed

Description

@hkdobrev

Issuehunt badges

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.

bfred-it earned $40.00 by resolving this issue!

Activity

  1. lukaszklis commented on Jan 11, 2018

    @lukaszklis
    Contributor

    Sounds good to me, shall I open a PR for this? :)

  2. hkdobrev commented on Jan 11, 2018

    @hkdobrev
    ContributorAuthor

    @lukaszklis Go for it! :)

  3. IssueHuntBot commented on Apr 11, 2019

    @IssueHuntBot

    @IssueHunt has funded $40.00 to this issue.


  4. janat08 commented on Apr 16, 2019

    @janat08
    Contributor

    For whatever reason items under projects, and other sidebar menus aren't really selectable.

    setTimeout(()=>console.log(1110, select.all('.select-menu-no-results').map(x => x.textContent)), 1000)

    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.

  5. janat08 commented on Apr 21, 2019

    @janat08
    Contributor

    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.

  6. IssueHuntBot commented on May 6, 2019

    @IssueHuntBot

    @sindresorhus has rewarded $36.00 to @bfred-it. See it on IssueHunt

    • 💰 Total deposit: $40.00
    • 🎉 Repository reward(0%): $0.00
    • 🔧 Service fee(10%): $4.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions