diff --git a/src/App.svelte b/src/App.svelte index 96034cc..4066aa5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -5396,6 +5396,11 @@ {isBusy} language={appLanguage} onOpenManagement={openRepoManagement} + onOpenRepositories={() => { + const path = repoTabs.find(tab => sameRepoPath(tab.path, activeRepoPath))?.path ?? repoTabs[0]?.path; + if (path) return selectRepoTab(path); + return chooseRepositoryFolder(); + }} onOpenReviewCenter={() => openReviewCenter()} onOpenIssues={() => { activeView = "issues"; }} isActive={(path) => activeView === "repository" && sameRepoPath(activeRepoPath, path)} diff --git a/src/lib/RepoTabs.svelte b/src/lib/RepoTabs.svelte index ce56c04..2f1351b 100644 --- a/src/lib/RepoTabs.svelte +++ b/src/lib/RepoTabs.svelte @@ -1,5 +1,5 @@ - - - - - - - - - - PR - - - - - Issues - - - {#each repoTabs as repo (repo.path)} - onContextMenu(repo.path, event)} - > - onSelect(repo.path)} - disabled={isBusy} - title={repo.path} - > - - {repo.name} - - onClose(repo.path, event)} - disabled={isBusy} - aria-label={language === "de" ? `${repo.name} schließen` : `Close ${repo.name}`} - title={language === "de" ? "Repository-Tab schließen" : "Close repository tab"} - > - - - - {/each} - - - - - + + + Dashboard + Repositories + Pull Requests + Issues & Boards + + {#if activeView === "repository"} + + {#each repoTabs as repo (repo.path)} + onContextMenu(repo.path, event)}> + onSelect(repo.path)} disabled={isBusy} title={repo.path} aria-current={isActive(repo.path) ? "page" : undefined}>{repo.name} + onClose(repo.path, event)} disabled={isBusy} aria-label={language === "de" ? `${repo.name} schließen` : `Close ${repo.name}`}> + + {/each} + + + {/if} + +