Skip to content

Commit

Permalink
Empty state for tag filterering
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Nov 11, 2023
1 parent a9cbf5b commit 159f13c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/jsMain/kotlin/testcases/tag-control.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ fun RenderContext.tagFilterEditor() {
leftRightRow {

row {
p {
+"tags"
if(filter.tags.isNotEmpty()) {
p {
+"Tags:"
}
} else {
p {
+"Add some tags to your test cases to enable tag filtering"
}
}
filter.tags.forEach { tag ->
secondaryButton(iconSource = SvgIconSource.Delete, text = tag) {
Expand Down

0 comments on commit 159f13c

Please sign in to comment.