From e09dabd441d62545a4d22ce88476c4c4bdde190d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirek=20Wr=C3=B3bel?= Date: Wed, 14 Oct 2026 22:07:21 +0200 Subject: [PATCH] Disable the fold button when no run is long enough to fold --- src/App.vue | 10 +++++++++- src/lib/collapse.test.ts | 9 ++++++++- src/lib/collapse.ts | 6 +++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 162bddf..731e8b3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -164,6 +164,7 @@ function toggleRun(hash: string) { } function toggleCollapseAll() { + if (!built.value.collapsible) return showToast("nothing to fold: no run of 3 or more plain commits"); collapseAll.value = !collapseAll.value; toggled.value = new Set(); } @@ -244,7 +245,13 @@ onUnmounted(() => { {{ repo.root }} {{ visibleCommits.length }} commits · {{ visibleRefs.length }}/{{ repo.refs.length }} refs -