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

Dominik Csapak d.csapak at proxmox.com
Tue Feb 21 09:43:29 CET 2017


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




More information about the pve-devel mailing list