Disable diff viewer button after displaying the diff. see #109

This commit is contained in:
mic 2025-03-22 22:16:21 +01:00
parent fe1b8d3eb3
commit 11c84d463f

View file

@ -265,6 +265,7 @@ class MessagesArea extends HTMLElement {
originalText = promptData.prompt_info?.body_text; originalText = promptData.prompt_info?.body_text;
} }
this.appendDiffViewer(originalText, strippedText); this.appendDiffViewer(originalText, strippedText);
diffvButton.disabled = true;
}); });
actionButtons.appendChild(diffvButton); actionButtons.appendChild(diffvButton);
} }