fix: improve command palette actions and automation condition button
All checks were successful
Lint & Test / test (push) Successful in 1m16s
All checks were successful
Lint & Test / test (push) Successful in 1m16s
- Action items (start/stop, enable/disable) no longer close the palette - Action items toggle state after success (Start→Stop, Enable→Disable) - Toast z-index raised above command palette backdrop (3000→3500) - Automation condition remove button uses ICON_TRASH SVG instead of ✕
This commit is contained in:
@@ -610,7 +610,7 @@ function addAutomationConditionRow(condition: any) {
|
||||
<select class="condition-type-select">
|
||||
${CONDITION_TYPE_KEYS.map(k => `<option value="${k}" ${condType === k ? 'selected' : ''}>${t('automations.condition.' + k)}</option>`).join('')}
|
||||
</select>
|
||||
<button type="button" class="btn-remove-condition" onclick="this.closest('.automation-condition-row').remove(); if(window._autoGenerateAutomationName) window._autoGenerateAutomationName();" title="Remove">✕</button>
|
||||
<button type="button" class="btn-remove-condition" onclick="this.closest('.automation-condition-row').remove(); if(window._autoGenerateAutomationName) window._autoGenerateAutomationName();" title="Remove">${ICON_TRASH}</button>
|
||||
</div>
|
||||
<div class="condition-fields-container"></div>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user