feat: Uses room names for trunk sizing in the form and table, prep for removing register-id's in favor of only using the room names.
This commit is contained in:
@@ -51,9 +51,11 @@ extension DuctSizingView {
|
||||
.attributes(.class("badge-info"), when: trunk.type == .supply)
|
||||
.attributes(.class("badge-error"), when: trunk.type == .return)
|
||||
}
|
||||
td(.class("space-x-2")) {
|
||||
for id in registerIDS {
|
||||
Badge { id }
|
||||
td {
|
||||
div(.class("flex flex-wrap space-x-2 space-y-2")) {
|
||||
for id in registerIDS {
|
||||
Badge { id }
|
||||
}
|
||||
}
|
||||
}
|
||||
td {
|
||||
@@ -129,7 +131,7 @@ extension DuctSizingView {
|
||||
rooms
|
||||
.first(where: { $0.roomID == room.id && $0.roomRegister == register })
|
||||
{
|
||||
array.append(room.registerID)
|
||||
array.append(room.roomName)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user