mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 08:39:02 +03:00
fix(app): show the review icon on the files changed tab (#58358)
Co-authored-by: iamdavidhill <1879069+iamdavidhill@users.noreply.github.com> Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
d5bee9ecb4
commit
1dddb81115
@@ -11,6 +11,7 @@ import {
|
||||
untrack,
|
||||
} from "solid-js"
|
||||
import { createStore } from "solid-js/store"
|
||||
import { Icon } from "@opencode/ui/icon"
|
||||
import type { FileDiffInfo } from "@opencode/client/promise"
|
||||
import {
|
||||
Command,
|
||||
@@ -121,6 +122,13 @@ const setup: Plugin.Setup<typeof Review> = (ctx) => {
|
||||
get title() {
|
||||
return count() > 0 ? ctx.plural("tab.count", count()) : ctx.t("tab.title")
|
||||
},
|
||||
// The same icon as the empty changes view.
|
||||
label: () => (
|
||||
<div class="flex items-center gap-1.5">
|
||||
<Icon name="review" size="small" />
|
||||
<span>{tab.title}</span>
|
||||
</div>
|
||||
),
|
||||
// Without focusable content the panel itself joins the tab order.
|
||||
get tabbable() {
|
||||
return !(count() > 0 || layout.sidebar.opened())
|
||||
|
||||
Reference in New Issue
Block a user