8f60ee4cca
This removes *a lot* of code duplication. I add a base class for the storage edit window and for its containing input panel, they implement the shared stuff. Especially the window was mostly a 1:1 copy... I look hard for a way to split up this patch, but I did not really found one which would not generate a lot of work for no value added (value being 'revertability' and better git history here). nd actually not too much happens, the same thing happens just over and over again. Thus, I've thrown in the dynamic creation of the storage add menu items here too. I remove all storage specific Edit windows, they where all just >95% duplicates of each other. Special functionallity, i.e. some data deletion/transforming before submitting gets done with onGetValues. For the RBD external vs PVE plugin I just added a minimal child class to RBD which only tells it'S parent that it is the pve one, this is nice for the mapping and should be easy to understand when reading the code. Tried to test an add and an edit of all visible storage plugins, seems to be OK now. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
||
---|---|---|
aplinfo | ||
bin | ||
debian | ||
PVE | ||
www | ||
.gitignore | ||
bridgevlan | ||
bridgevlanport | ||
country.pl | ||
defines.mk | ||
Makefile | ||
mtu | ||
pve-apt.conf | ||
pve-blacklist.conf | ||
pve-initramfs.conf | ||
pve-sources.list | ||
repoid.pl | ||
spice-example-sh | ||
vlan | ||
vlan-down | ||
vzdump-hook-script.pl | ||
vzdump.conf |