]> git.datanom.net - omvzfs.git/blobdiff - patches/Filesystem.patch
Patches to OMV core
[omvzfs.git] / patches / Filesystem.patch
diff --git a/patches/Filesystem.patch b/patches/Filesystem.patch
new file mode 100644 (file)
index 0000000..694be09
--- /dev/null
@@ -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);
This page took 0.030941 seconds and 5 git commands to generate.