fix: group utility overview by area and show explicit room meters
This commit is contained in:
1 parent
8c6b23bd22
commit
93c015ec77
17 files changed
+1475
-1253
No files matched your search
@@ -15,6 +15,7 @@ import { generateWalls, innerSize, type Wall } from "../../../geometry/walls.ts"
|
||||
import { countsAsLiving, roomArea } from "../../../geometry/living-area.ts";
|
||||
import { roomSpeaker } from "../../../live/announce.ts";
|
||||
import { isSymcon } from "../../../entities/symcon-values.ts";
|
||||
import { renderSymconRoomMeters } from "../symcon-fields.ts";
|
||||
|
||||
/** What the room form makes the editor do, and the parts of it that the editor still draws itself. */
|
||||
export interface RoomActions {
|
||||
@@ -189,7 +190,7 @@ export function renderRoomForm(host: EditorHost, state: SideState, room: Room, a
|
||||
<button class="nf-btn" title=${t("room_start_view_hint")} ?disabled=${!host.admin} @click=${() => actions.rememberView()}>${t("room_start_view")}</button>
|
||||
${room.start_view ? html`<button class="nf-btn" title=${t("room_start_view_reset")} ?disabled=${!host.admin} @click=${() => actions.patch({ start_view: null })}>↺</button>` : nothing}
|
||||
</div>
|
||||
${actions.wallHeights} ${actions.climate} ${corners(host, room, rectangle, actions)}
|
||||
${actions.wallHeights} ${actions.climate} ${isSymcon(host.hass) ? renderSymconRoomMeters(host, room, (change) => actions.patch(change)) : nothing} ${corners(host, room, rectangle, actions)}
|
||||
${host.admin
|
||||
? html`<div class="nf-actions">
|
||||
<button class="nf-btn nf-primary" @click=${() => (state.packages = !state.packages)}>${t("pkg_open")}</button>
|
||||
|
||||
Reference in new issue
Block a user