Commit 8d3b220a authored by Dietmar Maurer's avatar Dietmar Maurer

add confirmation before starting system upgrade

parent eaf82342
...@@ -77,8 +77,12 @@ Ext.define('PVE.node.APT', { ...@@ -77,8 +77,12 @@ Ext.define('PVE.node.APT', {
} }
}); });
var upgrade_btn = new Ext.Button({ var upgrade_btn = new PVE.button.Button({
text: gettext('Upgrade'), text: gettext('Upgrade'),
dangerous: true,
confirmMsg: function(rec) {
return gettext('Are you sure you want to upgrade this node?');
},
handler: function(){ handler: function(){
apt_command('upgrade'); apt_command('upgrade');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment