Skip to content

Commit

Permalink
feat(model-server): add confirmation modal to repository deletion button
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuster23 committed Jun 26, 2024
1 parent c75dcf8 commit b2aae13
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import kotlinx.html.a
import kotlinx.html.form
import kotlinx.html.h1
import kotlinx.html.i
import kotlinx.html.onClick
import kotlinx.html.p
import kotlinx.html.postButton
import kotlinx.html.span
Expand Down Expand Up @@ -120,6 +121,7 @@ fun FlowContent.buildDeleteRepositoryForm(repositoryId: String) {
postButton {
name = "delete"
formAction = "../v2/repositories/${repositoryId.encodeURLPathPart()}/delete"
onClick = "return confirm('Are you sure you want to delete the repository $repositoryId?')"
+"Delete Repository"
}
}
Expand Down

0 comments on commit b2aae13

Please sign in to comment.