X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/5690c58bd4b068fca83db81fd99ba342c54f9420..216661f426428882a2122bd52c53eb9f82bd5a43:/gui/js/omv/module/admin/storage/zfs/TreePanel.js diff --git a/gui/js/omv/module/admin/storage/zfs/TreePanel.js b/gui/js/omv/module/admin/storage/zfs/TreePanel.js index 320a6cd..919b513 100644 --- a/gui/js/omv/module/admin/storage/zfs/TreePanel.js +++ b/gui/js/omv/module/admin/storage/zfs/TreePanel.js @@ -317,10 +317,9 @@ Ext.define("OMV.module.admin.storage.zfs.TreePanel", { tbarBtnHidden["edit"] = true; tbarBtnHidden["delete"] = false; } - //Disable 'AddObj' button if selected row is a Poool or a Snapshot + //Disable 'AddObj' button if selected row is a Snapshot Ext.Array.each(records, function(record) { - if(("Pool" == record.get("type")) || - ("Snapshot" == record.get("type"))) { + if("Snapshot" == record.get("type")) { tbarBtnDisabled["addobj"] = true; tbarBtnHidden["addobj"] = true; return false;