Update
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
return false;
|
||||
}
|
||||
if (req.action === 'SHOW_RESULT') {
|
||||
showResult(req.comment, req.model, req.commentTransVi);
|
||||
showResult(req.comment, req.model, req.commentTransVi, req.commentTransModel);
|
||||
sendResponse({ ok: true });
|
||||
return false;
|
||||
}
|
||||
@@ -584,7 +584,7 @@
|
||||
}
|
||||
|
||||
// ===== SHOW RESULT / ERROR =====
|
||||
function showResult(comment, model='', transVi='') {
|
||||
function showResult(comment, model='', transVi='', transByModal = '') {
|
||||
if (!sidebarHost) return;
|
||||
const s = sidebarHost.shadowRoot;
|
||||
const statusEl = s.querySelector('#ai-status');
|
||||
@@ -609,7 +609,7 @@
|
||||
transViEl.textContent = '';
|
||||
}
|
||||
}
|
||||
if (copyHint) { copyHint.style.display = 'block'; copyHint.textContent = model || '📋 Copy kết quả và dán vào ô reply!'; }
|
||||
if (copyHint) { copyHint.style.display = 'block'; copyHint.textContent = `W:${model} - T:${transByModal}` || '📋 Copy kết quả và dán vào ô reply!'; }
|
||||
if (runBtn) runBtn.disabled = false;
|
||||
if (drawer) drawer.classList.add('open');
|
||||
if (typingOpts) typingOpts.classList.add('visible');
|
||||
|
||||
Reference in New Issue
Block a user