From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id F291698EA8 for ; Wed, 19 Apr 2023 08:44:34 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BE69E1EAFC for ; Wed, 19 Apr 2023 08:44:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 19 Apr 2023 08:44:03 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 7ECD9459FB for ; Wed, 19 Apr 2023 08:44:03 +0200 (CEST) From: Markus Frank To: pve-devel@lists.proxmox.com Date: Wed, 19 Apr 2023 08:43:46 +0200 Message-Id: <20230419064348.11953-4-m.frank@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230419064348.11953-1-m.frank@proxmox.com> References: <20230419064348.11953-1-m.frank@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.060 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH novnc v6 3/5] added show clipboard button patch to series X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2023 06:44:35 -0000 Signed-off-by: Markus Frank --- .../patches/0019-show-clipboard-button.patch | 30 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 31 insertions(+) create mode 100644 debian/patches/0019-show-clipboard-button.patch diff --git a/debian/patches/0019-show-clipboard-button.patch b/debian/patches/0019-show-clipboard-button.patch new file mode 100644 index 0000000..f3d8d64 --- /dev/null +++ b/debian/patches/0019-show-clipboard-button.patch @@ -0,0 +1,30 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Markus Frank +Date: Fri, 28 Oct 2022 13:57:57 +0200 +Subject: [PATCH] show clipboard button + +show button when clipboard at status/current is true + +Signed-off-by: Markus Frank +--- + app/pve.js | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/app/pve.js b/app/pve.js +index 287615f..5d6fa26 100644 +--- a/app/pve.js ++++ b/app/pve.js +@@ -411,6 +411,10 @@ PVEUI.prototype = { + document.getElementById('pve_start_dlg') + .classList.add("noVNC_open"); + } ++ if (result.data.vnc_clipboard) { ++ document.getElementById('noVNC_clipboard_button') ++ .classList.remove('pve_hidden'); ++ } + }, + failure: function(msg, code) { + if (code === 403) { +-- +2.30.2 + diff --git a/debian/patches/series b/debian/patches/series index 085e2b4..212add7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -16,3 +16,4 @@ 0016-hide-fullscreen-button-on-isFullscreen-get-variable.patch 0017-make-error-hideable.patch 0018-show-start-button-on-not-running-vm-ct.patch +0019-show-clipboard-button.patch -- 2.30.2