[pve-devel] [PATCH pve-manager] Fix help text. Current text has opposite meaning.
Michael Rasmussen
mir at datanom.net
Wed Feb 22 01:13:31 CET 2017
Signed-off-by: Michael Rasmussen <mir at datanom.net>
---
www/manager6/storage/ZFSEdit.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/www/manager6/storage/ZFSEdit.js b/www/manager6/storage/ZFSEdit.js
index 12d6af1..68237fb 100644
--- a/www/manager6/storage/ZFSEdit.js
+++ b/www/manager6/storage/ZFSEdit.js
@@ -11,6 +11,10 @@ Ext.define('PVE.storage.ZFSInputPanel', {
delete values.storage;
}
+ if (typeof(values.nowritecache) !== 'undefined') {
+ values.nowritecache = values.nowritecache == '1' ? '0' : '1';
+ }
+
values.disable = values.enable ? 0 : 1;
delete values.enable;
@@ -91,7 +95,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
{
xtype: 'pvecheckbox',
name: 'nowritecache',
- checked: true,
+ checked: false,
uncheckedValue: 0,
fieldLabel: gettext('Write cache')
},
@@ -156,6 +160,9 @@ Ext.define('PVE.storage.ZFSEdit', {
if (values.nodes) {
values.nodes = values.nodes.split(',');
}
+ if (typeof(values.nowritecache) !== 'undefined') {
+ values.nowritecache = values.nowritecache == '1' ? '0' : '1';
+ }
values.enable = values.disable ? 0 : 1;
ipanel.setValues(values);
}
--
2.1.4
----
This mail was virus scanned and spam checked before delivery.
This mail is also DKIM signed. See header dkim-signature.
More information about the pve-devel
mailing list