+3
-2
@@ -1899,8 +1899,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (releaseBtn) {
|
if (releaseBtn) {
|
||||||
// show button only when the conversation was put ON HOLD by an operator (not when the user requested an advisor)
|
// show button when on_hold or advisor_requested
|
||||||
releaseBtn.style.display = conv.on_hold ? 'inline-block' : 'none';
|
releaseBtn.style.display = (conv.on_hold || conv.advisor_requested) ? 'inline-block' : 'none';
|
||||||
|
releaseBtn.onclick = async () => {
|
||||||
try {
|
try {
|
||||||
const resp = await fetch('api/release_hold.php', {
|
const resp = await fetch('api/release_hold.php', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user