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 53383D5F8 for ; Thu, 21 Sep 2023 13:48:17 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3C1711F2A2 for ; Thu, 21 Sep 2023 13:48:17 +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 ; Thu, 21 Sep 2023 13:48:16 +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 31FBD4867B for ; Thu, 21 Sep 2023 13:48:16 +0200 (CEST) From: Markus Frank To: pve-devel@lists.proxmox.com Date: Thu, 21 Sep 2023 13:47:56 +0200 Message-Id: <20230921114758.352377-5-m.frank@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230921114758.352377-1-m.frank@proxmox.com> References: <20230921114758.352377-1-m.frank@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.048 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 Subject: [pve-devel] [PATCH novnc v13 4/6] add "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: Thu, 21 Sep 2023 11:48:17 -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..b87229e --- /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..1b98f20 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.clipboard === "vnc") { ++ document.getElementById('noVNC_clipboard_button') ++ .classList.remove('pve_hidden'); ++ } + }, + failure: function(msg, code) { + if (code === 403) { +-- +2.39.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.39.2