]> git.proxmox.com Git - novnc-pve.git/commitdiff
add "show clipboard button" patch to series
authorMarkus Frank <m.frank@proxmox.com>
Tue, 14 Nov 2023 09:22:54 +0000 (10:22 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 18 Nov 2023 16:31:04 +0000 (17:31 +0100)
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Markus Frank <m.frank@proxmox.com>
debian/patches/0019-show-clipboard-button.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0019-show-clipboard-button.patch b/debian/patches/0019-show-clipboard-button.patch
new file mode 100644 (file)
index 0000000..b87229e
--- /dev/null
@@ -0,0 +1,30 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Markus Frank <m.frank@proxmox.com>
+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 <m.frank@proxmox.com>
+---
+ 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
+
index 085e2b46770c9557172c39d9a5f3e0c2dd440fc2..212add7b73988afc6f0f9fc27bf41771feed85bc 100644 (file)
@@ -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