Skip to content

Commit d1e8eb7

Browse files
committed
make complete for finished backfills
1 parent db8d186 commit d1e8eb7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

service/src/main/kotlin/app/cash/backfila/ui/pages/BackfillShowAction.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,14 @@ class BackfillShowAction @Inject constructor(
206206
span("font-medium") { +"""Overall Progress""" }
207207
span("font-semibold text-gray-900") {
208208
if (allPrecomputingDone && totalItemsToRun > 0) {
209-
val percentage = (totalBackfilledItems.toDouble() / totalItemsToRun * 100).let {
210-
if (it.isNaN()) 0.0 else it
211-
}
209+
val percentage =
210+
(totalBackfilledItems.toDouble() / totalItemsToRun * 100).let {
211+
if (it.isNaN()) 0.0 else it
212+
}
212213
+"""${String.format("%.1f", percentage)}%"""
214+
} else
215+
if (backfill.state == BackfillState.COMPLETE) {
216+
+"""Complete"""
213217
} else {
214218
+"""Computing..."""
215219
}

0 commit comments

Comments
 (0)