fix(photo-ai): keep loading progress visible until result loads

This commit is contained in:
dev
2026-10-17 01:20:40 +03:00
parent afd5b2dd18
commit 1d74813b0f
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -1167,8 +1167,7 @@ async function runPhotoAi() {
if (s.status === 'done') {
doneHandled = true;
clearInterval(photoAiPollTimer);
const loadingEl = document.getElementById('enhanceLoading');
if (loadingEl) loadingEl.style.display = 'none';
setEnhanceLoadingProgress(100, 'Загрузка результата...');
resolve(s);
}
else if (s.status === 'error') {