From: "Dominic Jäger" <d.jaeger@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH manager 2/3] Hardware View: Add GUI for importdisk
Date: Thu, 30 Jul 2020 12:20:19 +0200 [thread overview]
Message-ID: <20200730102019.GA511631@mala.proxmox.com> (raw)
In-Reply-To: <2405749c-bc36-0a9a-0302-5d73a307b93a@proxmox.com>
Thank you for taking a look!
> > + if (me.isImport) {
> > + // These keys & values are accepted by the API as they are
> > + let simple = ['backup', 'ssd', 'iothread', 'cache'];
> > + let burst = ['mbps_rd', 'mbps_wr', 'iops_rd', 'iops_wr'];
> > + burst = burst.concat(burst.map(x => `${x}_max`));
> > + let available = simple.concat(burst);
> > + let addValues = key => `${key}=${values[key]}`;
> > + let selectedKeys = x => values[x];
> > + let options = available.filter(selectedKeys).map(addValues).join();
> > + // These need modification for the API
> > + options += values.discard ? ',discard=on' : '';
> > + options += values.noreplicate ? ',replicate=0' : '';
> > + params.device_options = options;
>
> One or two newlines in the above block would be nice to make the distinction between the logical blocks more obvious.
Done.
>
> > + if (me.isImport) selector.storageLabel = 'Target storage';
>
> this should be a `gettext('Target storage')` so it can be translated.
Done.
> for consistency I would not change the title and instead set the following:
> me.subject = gettext('Import Disk'),
Done.
next prev parent reply other threads:[~2020-07-30 10:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-07 10:04 [pve-devel] [PATCH widget-toolkit 0/1] " Dominic Jäger
2020-07-07 10:04 ` [pve-devel] [PATCH widget-toolkit 1/3] EditWindow: Change url to 'importdisk' for import Dominic Jäger
2020-07-07 10:04 ` [pve-devel] [PATCH manager 2/3] Hardware View: Add GUI for importdisk Dominic Jäger
2020-07-29 13:25 ` Aaron Lauterer
2020-07-30 10:20 ` Dominic Jäger [this message]
2020-07-07 10:04 ` [pve-devel] [PATCH qemu-server 3/3] Move importdisk from qm to API Dominic Jäger
2020-07-29 13:00 ` Aaron Lauterer
2020-07-30 10:38 ` Dominic Jäger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200730102019.GA511631@mala.proxmox.com \
--to=d.jaeger@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.