mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-11 18:20:30 +00:00
Avoid duplicate busy-placeholder refresh
This commit is contained in:
@@ -5990,7 +5990,6 @@ async function handleComposerPrimaryAction(){
|
||||
function setBusy(v){
|
||||
S.busy=v;
|
||||
updateSendBtn();
|
||||
if(typeof _applyBusyComposerPlaceholder==='function') _applyBusyComposerPlaceholder();
|
||||
if(!v){
|
||||
if(typeof _clearActivityElapsedTimer==='function') _clearActivityElapsedTimer();
|
||||
setStatus('');
|
||||
|
||||
@@ -5,7 +5,7 @@ preferences-panel autosave pattern is wired correctly:
|
||||
|
||||
- All 15 preference fields use _schedulePreferencesAutosave (not _markSettingsDirty)
|
||||
- Password field MUST still call _markSettingsDirty (security: never autosave)
|
||||
- _preferencesPayloadFromUi covers all 14 fields
|
||||
- _preferencesPayloadFromUi covers all 15 fields
|
||||
- _setPreferencesAutosaveStatus uses the shared i18n keys
|
||||
- Status div exists in static/index.html
|
||||
- _autosavePreferencesSettings clears the dirty flag and hides the unsaved bar
|
||||
|
||||
@@ -72,7 +72,8 @@ def test_busy_placeholder_helper_preserves_compression_and_drafts():
|
||||
assert "_applyBusyComposerPlaceholder" in update_block
|
||||
|
||||
busy_block = _function_block(UI_JS, "setBusy")
|
||||
assert "_applyBusyComposerPlaceholder" in busy_block
|
||||
assert "updateSendBtn();" in busy_block
|
||||
assert "_applyBusyComposerPlaceholder" not in busy_block
|
||||
|
||||
|
||||
def test_locale_blocks_cover_new_keys():
|
||||
|
||||
Reference in New Issue
Block a user