[pve-devel] [PATCH pve-manager] Fix help text. Current text has opposite meaning.

datanom.net mir at datanom.net
Tue Feb 21 11:20:12 CET 2017


On 2017-02-21 09:43, Dominik Csapak wrote:
> On 02/21/2017 09:41 AM, Dietmar Maurer wrote:
>>> On Tue, 21 Feb 2017 06:05:43 +0100 (CET)
>>> Dietmar Maurer <dietmar at proxmox.com> wrote:
>>> 
>>>> I would like to keep the text, and instead change/negate the value 
>>>> before
>>>> sending it to the server (inside onGetValues) ...
>>>> 
>>> Should defaults be unchecked also then to be persistent with current
>>> functionality?
>> 
>> Yes!
>> 
> 
> btw, you can achieve this with simple extjs settings like this:
> 
> 
>  		name: 'nowritecache',
>  		checked: false,
>  		uncheckedValue: 1,
> 		inputValue: 0,
> 		fieldLabel: gettext('Write cache')
> 
> so that on a checked status, the value 0 gets sent,
> and when unchecked, 1 gets sent
> 
I will look into this when I get home from work today. I also prefer 
this solution much more as the other solution was convoluted.

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------

----

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