X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/216661f426428882a2122bd52c53eb9f82bd5a43..f438c7047ae7bae87f3814fd22e860b090de2845:/patches/Filesystem.patch diff --git a/patches/Filesystem.patch b/patches/Filesystem.patch new file mode 100644 index 0000000..694be09 --- /dev/null +++ b/patches/Filesystem.patch @@ -0,0 +1,17 @@ +--- omv/Filesystem.js.org 2014-09-18 10:52:09.777037347 +0200 ++++ omv/Filesystem.js 2014-09-18 21:18:41.363038848 +0200 +@@ -642,6 +642,14 @@ + tbarBtnDisabled["quota"] = true; + } + } ++ //Disable all buttons for zfs filesystems. These actions should be ++ //handled by 3rd party plugin. ++ if([ "zfs_member" ].indexOf( ++ records[0].get("type")) == 0) { ++ tbarBtnDisabled["mount"] = true; ++ tbarBtnDisabled["unmount"] = true; ++ tbarBtnDisabled["delete"] = true; ++ } + // Update the button controls. + Ext.Object.each(tbarBtnDisabled, function(key, value) { + this.setToolbarButtonDisabled(key, value);