]> git.datanom.net - omvzfs.git/blobdiff - gui/js/omv/module/admin/storage/zfs/TreePanel.js
Support for cloned filesystems and volumes.
[omvzfs.git] / gui / js / omv / module / admin / storage / zfs / TreePanel.js
index ab9c83f2fb9b28eb4ccdb63e454c25a279269c12..56c3ec0f4ce0ba057d6715d4d3f99ed197d0e9f9 100644 (file)
@@ -190,7 +190,7 @@ Ext.define("OMV.module.admin.storage.zfs.TreePanel", {
                        id: me.getId() + "-add",
                        xtype: "button",
                        text: me.addButtonText,
-                       icon: "images/add.png",
+                       icon: "images/zfs_addpool.png",
                        iconCls: Ext.baseCSSPrefix + "btn-icon-16x16",
                        hidden: me.hideAddButton,
                        handler: Ext.Function.bind(me.onAddButton, me, [ me ]),
@@ -209,7 +209,7 @@ Ext.define("OMV.module.admin.storage.zfs.TreePanel", {
                        id: me.getId() + "-addobj",
                        xtype: "button",
                        text: me.addObjButtonText,
-                       icon: "images/add.png",
+                       icon: "images/zfs_addobject.png",
                        iconCls: Ext.baseCSSPrefix + "btn-icon-16x16",
                        hidden: me.hideAddObjButton,
                        handler: Ext.Function.bind(me.onAddObjButton, me, [ me ]),
@@ -337,9 +337,9 @@ Ext.define("OMV.module.admin.storage.zfs.TreePanel", {
                        tbarBtnHidden["delete"] = false;
                        tbarBtnHidden["expand"] = true;
                }
-               //Disable 'AddObj' button if selected row is a Snapshot
+               //Disable 'AddObj' button if selected row is a Clone
                Ext.Array.each(records, function(record) {
-                       if("Snapshot" == record.get("type")) {
+                       if("Clone" == record.get("type")) {
                                tbarBtnDisabled["addobj"] = true;
                                tbarBtnHidden["addobj"] = true;
                        return false;
This page took 0.035473 seconds and 5 git commands to generate.