|
|
@@ -68,6 +68,7 @@ import { archiveHomeSession } from "./home-session-archive"
|
|
|
import { showToast } from "@/utils/toast"
|
|
|
|
|
|
const HOME_SESSION_LIMIT = 64
|
|
|
+const SHOW_HOME_SESSION_ARCHIVE = false
|
|
|
const HOME_ROW_LAYOUT =
|
|
|
"flex min-w-0 w-full shrink-0 cursor-default items-center rounded-[6px] bg-transparent text-left transition-[background-color,color,box-shadow] duration-[120ms] ease-in-out focus-visible:outline-none"
|
|
|
const HOME_ROW_BASE = `${HOME_ROW_LAYOUT} border-0`
|
|
|
@@ -1189,22 +1190,24 @@ function HomeSessionRow(props: {
|
|
|
</span>
|
|
|
</Show>
|
|
|
</button>
|
|
|
- <div class="hover-reveal absolute right-1.5 top-1/2 flex -translate-y-1/2 items-center gap-1 group-hover/session:opacity-100 focus-within:opacity-100">
|
|
|
- <TooltipV2 class="flex shrink-0 items-center" placement="bottom" value={language.t("common.archive")}>
|
|
|
- <IconButtonV2
|
|
|
- data-action="home-session-archive"
|
|
|
- variant="ghost-muted"
|
|
|
- size="large"
|
|
|
- icon={<IconV2 name="archive" />}
|
|
|
- aria-label={language.t("common.archive")}
|
|
|
- onClick={(event) => {
|
|
|
- event.preventDefault()
|
|
|
- event.stopPropagation()
|
|
|
- void props.archiveSession(props.record.session)
|
|
|
- }}
|
|
|
- />
|
|
|
- </TooltipV2>
|
|
|
- </div>
|
|
|
+ <Show when={SHOW_HOME_SESSION_ARCHIVE}>
|
|
|
+ <div class="hover-reveal absolute right-1.5 top-1/2 flex -translate-y-1/2 items-center gap-1 group-hover/session:opacity-100 focus-within:opacity-100">
|
|
|
+ <TooltipV2 class="flex shrink-0 items-center" placement="bottom" value={language.t("common.archive")}>
|
|
|
+ <IconButtonV2
|
|
|
+ data-action="home-session-archive"
|
|
|
+ variant="ghost-muted"
|
|
|
+ size="large"
|
|
|
+ icon={<IconV2 name="archive" />}
|
|
|
+ aria-label={language.t("common.archive")}
|
|
|
+ onClick={(event) => {
|
|
|
+ event.preventDefault()
|
|
|
+ event.stopPropagation()
|
|
|
+ void props.archiveSession(props.record.session)
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </TooltipV2>
|
|
|
+ </div>
|
|
|
+ </Show>
|
|
|
</div>
|
|
|
)
|
|
|
}
|