feat: Updates rectangular size to be a modal form, some style updates to other views.
This commit is contained in:
@@ -677,6 +677,7 @@ extension SiteRoute.View.ProjectRoute {
|
||||
|
||||
public enum DuctSizingRoute: Equatable, Sendable {
|
||||
case index
|
||||
case deleteRectangularSize(Room.ID, DuctSizing.RectangularDuct.ID)
|
||||
case roomRectangularForm(Room.ID, RoomRectangularForm)
|
||||
|
||||
static let rootPath = "duct-sizing"
|
||||
@@ -686,6 +687,17 @@ extension SiteRoute.View.ProjectRoute {
|
||||
Path { rootPath }
|
||||
Method.get
|
||||
}
|
||||
Route(.case(Self.deleteRectangularSize)) {
|
||||
Path {
|
||||
rootPath
|
||||
"room"
|
||||
Room.ID.parser()
|
||||
}
|
||||
Method.delete
|
||||
Query {
|
||||
Field("rectangularSize") { DuctSizing.RectangularDuct.ID.parser() }
|
||||
}
|
||||
}
|
||||
Route(.case(Self.roomRectangularForm)) {
|
||||
Path {
|
||||
rootPath
|
||||
|
||||
Reference in New Issue
Block a user