feat: Updating id key for usage in views, for typesafe keys
This commit is contained in:
@@ -15,7 +15,7 @@ struct EmployeeTable: HTML {
|
||||
.attributes(
|
||||
.style("padding: 0px 10px;"),
|
||||
.hx.get(route: .employee(.form)),
|
||||
.hx.target(.float),
|
||||
.hx.target(.id(.float)),
|
||||
.hx.swap(.outerHTML.transition(true).swap("0.5s"))
|
||||
)
|
||||
}
|
||||
@@ -40,7 +40,7 @@ struct EmployeeTable: HTML {
|
||||
.attributes(
|
||||
.style("padding-left: 15px;"),
|
||||
.hx.get(route: .employee(.get(id: employee.id))),
|
||||
.hx.target(.float),
|
||||
.hx.target(.id(.float)),
|
||||
.hx.pushURL(true),
|
||||
.hx.swap(.outerHTML.transition(true).swap("0.5s"))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user