fix(call): кнопки входящего и автопереподключение после обрыва

This commit is contained in:
AidarKC
2026-04-22 17:33:57 +03:00
parent 97a2bee81a
commit d7c7bb3c23
2 changed files with 98 additions and 8 deletions
+3 -3
View File
@@ -54,8 +54,8 @@ function ensureUi() {
declineBtn = document.createElement('button');
declineBtn.type = 'button';
declineBtn.className = 'ghost-btn';
declineBtn.textContent = 'Отклонить';
declineBtn.className = 'destructive-btn';
declineBtn.textContent = 'Сбросить';
declineBtn.addEventListener('click', async () => {
await declineIncomingCall();
});
@@ -63,7 +63,7 @@ function ensureUi() {
hangupBtn = document.createElement('button');
hangupBtn.type = 'button';
hangupBtn.className = 'destructive-btn';
hangupBtn.textContent = 'Положить';
hangupBtn.textContent = 'Положить трубку';
hangupBtn.addEventListener('click', async () => {
await hangupActiveCall();
});