Update active_calls.php

This commit is contained in:
FusionPBX
2025-06-25 14:30:18 -06:00
committed by GitHub
parent c126429be4
commit 0616c67590

View File

@@ -142,22 +142,20 @@ if (!$settings->get('active_calls', 'remove_completed_calls', true)) {
]);
}
if (permission_exists('call_active_hangup')) {
if (permission_exists('call_active_hangup')) {
// Hangup selected calls
echo button::create([
'id' => 'btn_hangup',
'type' => 'button',
'label' => $text['label-hangup'],
'icon' => 'phone-slash',
'onclick' => "if (confirm('" . $text['confirm-hangup'] . "')) { "
. "hangup_selected();"
. "} else { "
. "this.blur(); "
. "return false; "
. "}",
]) . "\n";
}
if (permission_exists('call_active_hangup_disabled')) {
// Hangup selected calls
echo button::create([
'id' => 'btn_hangup',
'type' => 'button',
'label' => $text['label-hangup'],
'icon' => 'phone-slash',
'onclick' => "if (confirm('" . $text['confirm-hangup'] . "')) { "
. "hangup_selected();"
. "} else { "
. "this.blur(); "
. "return false; "
. "}",
]) . "\n";
}
echo " </div>\n";
echo " <div style='clear: both;'></div>\n";