X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/a6c3a4dd0c35379fcdec4462739dc92d758a882f..9f2f49761f46d21417199cf1118b3d08084ae0fb:/gui/js/omv/module/admin/storage/zfs/TreePanel.js?ds=sidebyside diff --git a/gui/js/omv/module/admin/storage/zfs/TreePanel.js b/gui/js/omv/module/admin/storage/zfs/TreePanel.js index ab9c83f..56c3ec0 100644 --- a/gui/js/omv/module/admin/storage/zfs/TreePanel.js +++ b/gui/js/omv/module/admin/storage/zfs/TreePanel.js @@ -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;