public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Matthias Heiserer <m.heiserer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH widget-toolkit 2/2] show min/max for values without any other format
Date: Wed, 12 Oct 2022 15:23:32 +0200	[thread overview]
Message-ID: <20221012132332.301805-2-m.heiserer@proxmox.com> (raw)
In-Reply-To: <20221012132332.301805-1-m.heiserer@proxmox.com>

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
---

Optional followup

 src/api-viewer/APIViewer.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/api-viewer/APIViewer.js b/src/api-viewer/APIViewer.js
index 2b04b8c..879c9a3 100644
--- a/src/api-viewer/APIViewer.js
+++ b/src/api-viewer/APIViewer.js
@@ -119,6 +119,9 @@ Ext.onReady(function() {
 	if (type_fallback && pdef.type) {
 	    return `<${pdef.type}>`;
 	}
+	if (pdef.minimum || pdef.maximum) {
+	    return `${pdef.minimum || 'N'} - ${pdef.maximum || 'N'}`;
+	}
 	return '';
     };
 
-- 
2.30.2





  reply	other threads:[~2022-10-12 13:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-12 13:23 [pve-devel] [PATCH widget-toolkit 1/2] api-viewer: fix #4271: display nested formats instead of [object Object] Matthias Heiserer
2022-10-12 13:23 ` Matthias Heiserer [this message]
2022-11-17  7:30 ` [pve-devel] applied: " Thomas Lamprecht

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=20221012132332.301805-2-m.heiserer@proxmox.com \
    --to=m.heiserer@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal