[pve-devel] [PATCH manager v4] Fix #582: Add default delay for backups

Dominic Jäger d.jaeger at proxmox.com
Mon Jul 15 12:28:18 CEST 2019


A default of 5 seems like a reasonable delay for removing backups from
the GUI. 

Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
v3->v4: Move default value to users of StdRemoveButton

 www/manager6/grid/BackupView.js     | 1 +
 www/manager6/storage/ContentView.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index 1a5bc209..5e73f902 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -159,6 +159,7 @@ Ext.define('PVE.grid.BackupView', {
 	var delete_btn = Ext.create('Proxmox.button.StdRemoveButton', {
 	    selModel: sm,
 	    dangerous: true,
+	    delay: 5,
 	    confirmMsg: function(rec) {
 		var msg = Ext.String.format(gettext('Are you sure you want to remove entry {0}'),
 					    "'" + rec.data.volid + "'");
diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index 9f867250..3677f8ad 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -425,6 +425,7 @@ Ext.define('PVE.storage.ContentView', {
 	var imageRemoveButton;
 	var removeButton = Ext.create('Proxmox.button.StdRemoveButton',{
 	    selModel: sm,
+	    delay: 5,
 	    enableFn: function(rec) {
 		if (rec && rec.data.content !== 'images') {
 		    imageRemoveButton.setVisible(false);
-- 
2.20.1




More information about the pve-devel mailing list