Toggle reads Mesh Chat

This commit is contained in:
Gmer4Lfe
2026-08-17 17:41:53 -04:00
parent 53d7784d5d
commit b6a677a710
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2412,7 +2412,7 @@ function vv_ai_chat_markup(string $prefix, array $o = []): void {
<button type="button" id="<?= $p ?>-mode" class="vv-ai-btn ghost"
onclick="vvNcMode()" title="Switch between the assistant and the mesh"
style="margin-left:8px;font-size:10px;padding:2px 8px;">
<span id="<?= $p ?>-mode-l">Mesh</span>
<span id="<?= $p ?>-mode-l">Mesh Chat</span>
<span id="vv-nc-badge" hidden
style="margin-left:5px;background:#7c4dff;color:#fff;border-radius:8px;
padding:0 6px;font-size:9px;font-weight:700;">✉ 0</span>
+1 -1
View File
@@ -567,7 +567,7 @@ function vvNcMode(force) {
ai.hidden = _vvNcMeshOn;
me.hidden = !_vvNcMeshOn;
const lbl = document.getElementById(p + '-mode-l');
if (lbl) lbl.textContent = _vvNcMeshOn ? 'Assistant' : 'Mesh';
if (lbl) lbl.textContent = _vvNcMeshOn ? 'Assistant' : 'Mesh Chat';
const t = document.getElementById(p + '-title');
if (t) t.textContent = _vvNcMeshOn ? 'Mesh Chat' : (t.dataset.ai || t.textContent);
try { localStorage.setItem('vvNcMode:' + p, _vvNcMeshOn ? '1' : '0'); } catch (_) {}