From debde9fb48fc43a437d6e7bb7873cb3ba82ae9af Mon Sep 17 00:00:00 2001 From: frytimo Date: Sun, 13 Jul 2025 23:52:32 -0300 Subject: [PATCH] Add hangup confirmation (#7423) --- app/active_calls/active_calls.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/active_calls/active_calls.php b/app/active_calls/active_calls.php index 9fe3e0d148..882f4d624c 100644 --- a/app/active_calls/active_calls.php +++ b/app/active_calls/active_calls.php @@ -207,6 +207,12 @@ if (permission_exists('call_active_hangup')) { 'type' => 'button', 'style' => 'display: none;', 'label' => $text['label-hangup'], + 'onclick' => "if (confirm('" . $text['confirm-hangup'] . "')) { " + . "hangup_selected();" + . "} else { " + . "this.blur(); " + . "return false; " + . "}", 'icon' => 'phone-slash', ]) . "\n"; }