Add hangup confirmation (#7423)

This commit is contained in:
frytimo
2025-07-13 23:52:32 -03:00
committed by GitHub
parent 178a8b3273
commit debde9fb48

View File

@@ -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";
}