User:Polygnotus/Scripts/Claude6.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 282:
// Add appropriate buttons based on API key state
if (this.apiKey) {
// Enable the proofread button now that we have an API key
this.buttons.proofread.setDisabled(false);
container.appendChild(this.buttons.proofread.$element[0]);
container.appendChild(this.buttons.changeKey.$element[0]);
container.appendChild(this.buttons.removeKey.$element[0]);
} else {
// Disable the proofread button when no API key
this.buttons.proofread.setDisabled(true);
container.appendChild(this.buttons.setKey.$element[0]);
}