Fix Git worktree UI: hide Follow button for current worktree

This commit is contained in:
Peter Steinberger 2025-07-30 18:33:51 +02:00
parent 6f16228370
commit fe2f30ed73

View file

@ -415,7 +415,7 @@ export class WorktreeManager extends LitElement {
<div class="flex gap-2 flex-wrap sm:flex-nowrap sm:ml-4">
${
!worktree.isMainWorktree
!worktree.isMainWorktree && !worktree.isCurrentWorktree
? html`
<button
@click=${() => this.handleToggleFollow(worktree.branch, this.followBranch !== worktree.branch)}