ui: sdn vnets: disable subnet create button if no vnet is selected
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
5
debian/control
vendored
5
debian/control
vendored
@ -19,7 +19,7 @@ Build-Depends: debhelper (>= 11~),
|
||||
lintian,
|
||||
pve-cluster,
|
||||
pve-container,
|
||||
pve-doc-generator (>= 6.2-3),
|
||||
pve-doc-generator (>= 6.4-1),
|
||||
qemu-server (>= 6.0-15),
|
||||
unzip,
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
@ -85,12 +85,13 @@ Depends: apt-transport-https | apt (>= 1.5~),
|
||||
${misc:Depends},
|
||||
${perl:Depends},
|
||||
${shlibs:Depends},
|
||||
Suggests: libpve-network-perl (>= 0.5-1)
|
||||
Conflicts: vlan,
|
||||
vzdump,
|
||||
Replaces: vlan,
|
||||
vzdump,
|
||||
Provides: vlan,
|
||||
vzdump,
|
||||
Breaks: libpve-network-perl (<< 0.4-6)
|
||||
Breaks: libpve-network-perl (<< 0.5-1)
|
||||
Description: Proxmox Virtual Environment Management Tools
|
||||
This package contains the Proxmox Virtual Environment management tools.
|
||||
|
@ -52,6 +52,19 @@ Ext.define('PVE.sdn.SubnetView', {
|
||||
win.on('destroy', reload);
|
||||
};
|
||||
|
||||
me.create_btn = new Proxmox.button.Button({
|
||||
text: gettext('Create'),
|
||||
disabled: true,
|
||||
handler: function() {
|
||||
let win = Ext.create('PVE.sdn.SubnetEdit', {
|
||||
autoShow: true,
|
||||
base_url: me.base_url,
|
||||
type: 'subnet',
|
||||
});
|
||||
win.on('destroy', reload);
|
||||
},
|
||||
});
|
||||
|
||||
let edit_btn = new Proxmox.button.Button({
|
||||
text: gettext('Edit'),
|
||||
disabled: true,
|
||||
@ -82,17 +95,7 @@ Ext.define('PVE.sdn.SubnetView', {
|
||||
trackOver: false,
|
||||
},
|
||||
tbar: [
|
||||
{
|
||||
text: gettext('Create'),
|
||||
handler: function() {
|
||||
let win = Ext.create('PVE.sdn.SubnetEdit', {
|
||||
autoShow: true,
|
||||
base_url: me.base_url,
|
||||
type: 'subnet',
|
||||
});
|
||||
win.on('destroy', reload);
|
||||
},
|
||||
},
|
||||
me.create_btn,
|
||||
me.remove_btn,
|
||||
edit_btn,
|
||||
],
|
||||
|
Reference in New Issue
Block a user