dashboard officially fixed in 3.1.3-1

This commit is contained in:
Wolfgang
2024-01-22 18:10:10 +00:00
parent 4c70693260
commit 99f7efc3f1
2 changed files with 0 additions and 34 deletions

View File

@@ -1,32 +0,0 @@
diff --git a/www/panel/NodeInfo.js b/www/panel/NodeInfo.js
index 72f97c7c..7c623ca6 100644
--- a/www/panel/NodeInfo.js
+++ b/www/panel/NodeInfo.js
@@ -151,8 +151,11 @@ Ext.define('PBS.NodeInfoPanel', {
return data.kversion;
}
let kernel = data['current-kernel'];
- let buildDate = kernel.version.match(/\((.+)\)\s*$/)[1] ?? 'unknown';
- return `${kernel.sysname} ${kernel.release} (${buildDate})`;
+ let buildDate = kernel.version.match(/(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}Z|[MTWFS]+[a-z]{2}.+\d{4}\b)\s*/);
+ if (!buildDate) {
+ buildDate=['unknown'];
+ }
+ return `${kernel.sysname} ${kernel.release} (${buildDate[0]})`;
},
value: '',
},
diff --git a/debian/changelog b/debian/changelog
index dc4a04cb..862fd783 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+rust-proxmox-backup (3.1.2-2) bookworm; urgency=medium
+
+ * ui: fix dashboard endless loading with custom kernels
+
+ -- Wolfgang <github@linux-dude.de> Sun, 03 Dec 2023 13:27:21 +0100
+
rust-proxmox-backup (3.1.2-1) bookworm; urgency=medium
* sync: fix recent regression with recursive remote sync