Skip to content

Commit

Permalink
Fix service search
Browse files Browse the repository at this point in the history
  • Loading branch information
adrw committed Jan 22, 2025
1 parent c3faec7 commit dfdc2ec
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import app.cash.backfila.dashboard.GetServicesAction
import kotlinx.html.InputType
import kotlinx.html.TagConsumer
import kotlinx.html.a
import kotlinx.html.classes
import kotlinx.html.div
import kotlinx.html.h3
import kotlinx.html.input
Expand Down Expand Up @@ -35,11 +36,11 @@ fun TagConsumer<*>.ServiceSelect(
role = "list"

services.map { (servicePath, service) ->
a {
a(classes = "registration") {
val variant = if (servicePath.split("/").last() == "default") null else servicePath.split("/").last()
href = serviceLinkBuilder(service.name, variant)

this@ul.li("registration col-span-1 divide-y divide-gray-200 rounded-lg bg-white shadow") {
this@ul.li("col-span-1 divide-y divide-gray-200 rounded-lg bg-white shadow") {
div("flex w-full items-center justify-between space-x-6 p-6") {
div("flex-1 truncate") {
div("flex items-center space-x-3") {
Expand Down

0 comments on commit dfdc2ec

Please sign in to comment.