Skip to content

Commit

Permalink
fix(#109): make issues search work for ALL projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-5 committed Feb 1, 2024
1 parent f53dba9 commit 9d41140
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/issues/goto.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package issues
import (
"github.com/mk-5/fjira/internal/app"
"github.com/mk-5/fjira/internal/jira"
"github.com/mk-5/fjira/internal/ui"
"time"
)

Expand Down Expand Up @@ -56,6 +57,12 @@ func RegisterGoTo() {
api := args[2].(jira.Api)

defer app.GetApp().PanicRecover()
if projectKey == ui.MessageAll {
project := &jira.Project{Id: ui.MessageAll, Name: ui.MessageAll, Key: ui.MessageAll}
projectsView := NewIssuesSearchView(project, goBackFn, api)
app.GetApp().SetView(projectsView)
return
}
app.GetApp().Loading(true)
project, err := api.FindProject(projectKey)
if err != nil {
Expand Down

0 comments on commit 9d41140

Please sign in to comment.