apt repos: make add-repo a checked command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-06-23 19:40:54 +02:00
parent 994fe897b7
commit 0e79ce21c1

View File

@ -438,6 +438,7 @@ Ext.define('Proxmox.node.APTRepositories', {
disabled: status !== undefined && status !== null, disabled: status !== undefined && status !== null,
repoHandle: handle, repoHandle: handle,
handler: function(menuItem) { handler: function(menuItem) {
Proxmox.Utils.checked_command(() => {
let params = { let params = {
handle: menuItem.repoHandle, handle: menuItem.repoHandle,
}; };
@ -458,6 +459,7 @@ Ext.define('Proxmox.node.APTRepositories', {
me.reload(); me.reload();
}, },
}); });
});
}, },
}); });
} }