fix dashboard endless loading with custom kernels

This commit is contained in:
Wolfgang
2023-12-03 14:21:18 +00:00
parent fe4740df49
commit 3e830636f1
2 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
diff --git a/www/panel/NodeInfo.js b/www/panel/NodeInfo.js
index 72f97c7c..074bd15b 100644
--- a/www/panel/NodeInfo.js
+++ b/www/panel/NodeInfo.js
@@ -151,7 +151,10 @@ Ext.define('PBS.NodeInfoPanel', {
return data.kversion;
}
let kernel = data['current-kernel'];
- let buildDate = kernel.version.match(/\((.+)\)\s*$/)[1] ?? 'unknown';
+ 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})`;
},
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