mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-13 18:01:04 +00:00
apt repos: make add-repo a checked command
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
994fe897b7
commit
0e79ce21c1
@ -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();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user