feat: threshold form payload carries per-config owner
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NfPpSpccTWBfZg1FTveyaU
This commit is contained in:
@@ -1556,10 +1556,15 @@
|
||||
|
||||
const cfgsContainer = document.getElementById('thresh-cfgs-' + sectionId);
|
||||
cfgsContainer.querySelectorAll('.thresh-cfg-card').forEach(card => {
|
||||
if (card.dataset.readonly === 'true') return;
|
||||
const configName = card.dataset.configName
|
||||
|| (card.querySelector('.new-config-name')?.value || '').trim();
|
||||
if (!configName) return;
|
||||
configs[configName] = readMetrics(card);
|
||||
const ownerInp = card.querySelector('.thresh-owner');
|
||||
configs[configName] = {
|
||||
owner: ownerInp ? ownerInp.value.trim() : '',
|
||||
metrics: readMetrics(card),
|
||||
};
|
||||
});
|
||||
|
||||
_staged['thresholds'] = configs;
|
||||
|
||||
Reference in New Issue
Block a user