Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This project adheres to a Code of Conduct that all contributors are expected to
```
5. Build the extension:
```bash
npm run build
npm run compile
```
6. Launch the extension in debug mode:
```bash
Expand Down
21 changes: 18 additions & 3 deletions media/chat/chat-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
sendButton.disabled = true;
sendButton.classList.add('disabled');
}

// Kaydet butonunu devre dışı bırak
if (saveSettingsBtn) {
saveSettingsBtn.disabled = true;
saveSettingsBtn.classList.add('disabled');
}
}
}

Expand All @@ -145,11 +151,17 @@
generatingIndicator.style.display = 'none';
}

// Gönder butonunu tekrar etkinleştir
// Gönder butonunu tekrar etkinleştir
if (sendButton) {
sendButton.disabled = false;
sendButton.classList.remove('disabled');
}

// Save butonunu tekrar etkinleştir
if (saveSettingsBtn) {
saveSettingsBtn.disabled = false;
saveSettingsBtn.classList.remove('disabled');
}
}
}

Expand Down Expand Up @@ -430,7 +442,7 @@
// Buton durumunu normal haline getir
const saveButton = document.getElementById('saveSettingsBtn');
saveButton.disabled = false;
saveButton.textContent = 'Kaydet';
saveButton.textContent = 'Save';
saveButton.classList.remove('saving');

// Başarılı mesajı göster
Expand Down Expand Up @@ -1403,7 +1415,10 @@
// Hata mesajını görüntüle
const errorDiv = document.createElement('div');
errorDiv.classList.add('error-message');
errorDiv.textContent = `Hata: ${message.content}`;
// errorDiv.textContent = `Hata: ${message.content}`;
let errorMessage = 'Bağlantı sağlanamadı. Lütfen ayarlarını kontrol edin ve tekrar deneyin.';

errorDiv.textContent = `⚠️ ${errorMessage}`;
messagesContainer.appendChild(errorDiv);

// Otomatik kaydır
Expand Down
Loading