We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db8d186 commit d1e8eb7Copy full SHA for d1e8eb7
service/src/main/kotlin/app/cash/backfila/ui/pages/BackfillShowAction.kt
@@ -206,10 +206,14 @@ class BackfillShowAction @Inject constructor(
206
span("font-medium") { +"""Overall Progress""" }
207
span("font-semibold text-gray-900") {
208
if (allPrecomputingDone && totalItemsToRun > 0) {
209
- val percentage = (totalBackfilledItems.toDouble() / totalItemsToRun * 100).let {
210
- if (it.isNaN()) 0.0 else it
211
- }
+ val percentage =
+ (totalBackfilledItems.toDouble() / totalItemsToRun * 100).let {
+ if (it.isNaN()) 0.0 else it
212
+ }
213
+"""${String.format("%.1f", percentage)}%"""
214
+ } else
215
+ if (backfill.state == BackfillState.COMPLETE) {
216
+ +"""Complete"""
217
} else {
218
+"""Computing..."""
219
}
0 commit comments