As the HA groups' failback flag is now being part of the HA resources
config, it should also be shown there instead of the previous HA groups
view.

Signed-off-by: Daniel Kral <d.k...@proxmox.com>
---
 www/manager6/ha/Resources.js  | 6 ++++++
 www/manager6/ha/StatusView.js | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js
index 097097dc..65897bed 100644
--- a/www/manager6/ha/Resources.js
+++ b/www/manager6/ha/Resources.js
@@ -136,6 +136,12 @@ Ext.define('PVE.ha.ResourcesView', {
                     renderer: (v) => (v === undefined ? '1' : v),
                     dataIndex: 'max_relocate',
                 },
+                {
+                    header: gettext('Failback'),
+                    width: 100,
+                    sortable: true,
+                    dataIndex: 'failback',
+                },
                 {
                     header: gettext('Description'),
                     flex: 1,
diff --git a/www/manager6/ha/StatusView.js b/www/manager6/ha/StatusView.js
index a3ca9fdf..50ad8e84 100644
--- a/www/manager6/ha/StatusView.js
+++ b/www/manager6/ha/StatusView.js
@@ -79,6 +79,10 @@ Ext.define(
                 'sid',
                 'state',
                 'comment',
+                {
+                    name: 'failback',
+                    type: 'boolean',
+                },
                 'max_restart',
                 'max_relocate',
                 'type',
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to