CQ fixes
This commit is contained in:
@@ -321,7 +321,7 @@
|
||||
|
||||
if (response.ok) {
|
||||
allChildren = await response.json();
|
||||
|
||||
|
||||
// Auto-select first child if no selection exists
|
||||
if (selectedChildId === null && allChildren.length > 0) {
|
||||
selectedChildId = allChildren[0].id;
|
||||
@@ -371,7 +371,9 @@
|
||||
|
||||
content.innerHTML = `
|
||||
<div class="controls">
|
||||
${allChildren.length === 1 ? `
|
||||
${
|
||||
allChildren.length === 1
|
||||
? `
|
||||
<label for="childDisplay">Child:</label>
|
||||
<input
|
||||
type="text"
|
||||
@@ -380,12 +382,14 @@
|
||||
readonly
|
||||
style="background-color: #f5f5f5; cursor: default; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px;"
|
||||
/>
|
||||
` : `
|
||||
`
|
||||
: `
|
||||
<label for="childFilter">Child:</label>
|
||||
<select id="childFilter" onchange="onChildChange(event)">
|
||||
${childOptions}
|
||||
</select>
|
||||
`}
|
||||
`
|
||||
}
|
||||
|
||||
<label for="daysRange">Time Range:</label>
|
||||
<select id="daysRange" onchange="onDaysRangeChange(event)">
|
||||
|
||||
Reference in New Issue
Block a user