File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
service/src/main/kotlin/app/cash/backfila/ui Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ package app.cash.backfila.ui.actions
3
3
import app.cash.backfila.dashboard.CreateBackfillAction
4
4
import app.cash.backfila.protos.service.CreateBackfillRequest
5
5
import app.cash.backfila.ui.pages.BackfillCreateAction.BackfillCreateField
6
+ import javax.inject.Inject
7
+ import javax.inject.Singleton
6
8
import misk.scope.ActionScoped
7
9
import misk.security.authz.Authenticated
8
10
import misk.web.Get
@@ -15,8 +17,6 @@ import misk.web.mediatype.MediaTypes
15
17
import misk.web.toResponseBody
16
18
import okhttp3.Headers
17
19
import okio.ByteString.Companion.encodeUtf8
18
- import javax.inject.Inject
19
- import javax.inject.Singleton
20
20
21
21
@Singleton
22
22
class BackfillCreateHandlerAction @Inject constructor(
Original file line number Diff line number Diff line change @@ -44,11 +44,10 @@ fun TagConsumer<*>.ServiceSelect(
44
44
div(" flex w-full items-center justify-between space-x-6 p-6" ) {
45
45
div(" flex-1 truncate" ) {
46
46
div(" flex items-center space-x-3" ) {
47
- // Don't include default variant in label, only for unique variants
48
- val label = if (variant == null ) service.name else servicePath
49
47
h3(" truncate text-sm font-medium text-gray-900" ) {
50
- + """ $label (${service.running_backfills} )"""
48
+ + """ ${service.name} (${service.running_backfills} )"""
51
49
}
50
+ // Don't include default variant in label, only for unique variants
52
51
variant?.let { span(" inline-flex shrink-0 items-center rounded-full bg-green-50 px-1.5 py-0.5 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20" ) { + it } }
53
52
}
54
53
// p("mt-1 truncate text-sm text-gray-500") { +"""Regional Paradigm Technician""" }
You can’t perform that action at this time.
0 commit comments