This allows users to additionally choose whether they want to purge referenced rules that only include the resource that is to be deleted.
Signed-off-by: Michael Köppl <[email protected]> --- www/manager6/ha/Resources.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js index 65897bed2..621ed3367 100644 --- a/www/manager6/ha/Resources.js +++ b/www/manager6/ha/Resources.js @@ -74,12 +74,20 @@ Ext.define('PVE.ha.ResourcesView', { handler: run_editor, }, { - xtype: 'proxmoxStdRemoveButton', + xtype: 'proxmoxButton', + text: gettext('Remove'), selModel: sm, - getUrl: function (rec) { - return `/cluster/ha/resources/${rec.get('sid')}`; + itemId: 'removeBtn', + disabled: true, + handler: function (btn, e, rec) { + Ext.create('PVE.window.ConfirmRemoveResource', { + url: `/cluster/ha/resources/${rec.data.sid}`, + item: { + id: rec.data.sid, + }, + apiCallDone: () => me.rstore.load(), + }).show(); }, - callback: () => me.rstore.load(), }, ], columns: [ -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
