From a0680094a89b2c6c2d396566bdd53ee70844ca81 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 14 Jun 2021 15:38:12 -0700 Subject: [PATCH] Fixed clipboard icon showing when agent is offline. --- views/default.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index 87510907..2119fdad 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -7684,8 +7684,8 @@ QV('DeskTimer', deskState == 3); // Enable browser clipboard read if supported - QV('DeskClipboardOutButton', inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.readText != null)); - QV('DeskClipboardInButton', inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.writeText != null)); + QV('DeskClipboardOutButton', online && inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.readText != null)); + QV('DeskClipboardInButton', online && inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.writeText != null)); if (deskState != 3) { QV('DeskInputLockedButton', false); QV('DeskInputUnLockedButton', false); }