From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com, pve-devel@lists.proxmox.com,
pmg-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-widget-toolkit] network edit: fix hiding of altnames field if disabled by config
Date: Thu, 31 Jul 2025 13:30:15 +0200 [thread overview]
Message-ID: <20250731113015.148881-1-c.ebner@proxmox.com> (raw)
Commit 691f530d ("network: optionally show alternative interface
names") introduced the optional altnames field in the network edit
grid. The chosen default configuration however does not even add the
field, therefore setting it to hidden if no altnames data is present
cannot work.
Fix this by only hiding the field if it was actually configured to be
shown in the first place.
Fixes: 691f530d ("network: optionally show alternative interface names")
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
src/node/NetworkEdit.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/node/NetworkEdit.js b/src/node/NetworkEdit.js
index cd9dc7c..601d788 100644
--- a/src/node/NetworkEdit.js
+++ b/src/node/NetworkEdit.js
@@ -465,7 +465,7 @@ Ext.define('Proxmox.node.NetworkEdit', {
if (Ext.isArray(data.altnames)) {
data.altnames = data.altnames.join('<br>');
}
- } else {
+ } else if (me.showAltNames && !me.isCreate) {
me.down('field[name=altnames]').setVisible(false);
}
me.setValues(data);
--
2.47.2
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
WARNING: multiple messages have this Message-ID
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com, pve-devel@lists.proxmox.com,
pmg-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-widget-toolkit] network edit: fix hiding of altnames field if disabled by config
Date: Thu, 31 Jul 2025 13:30:15 +0200 [thread overview]
Message-ID: <20250731113015.148881-1-c.ebner@proxmox.com> (raw)
Commit 691f530d ("network: optionally show alternative interface
names") introduced the optional altnames field in the network edit
grid. The chosen default configuration however does not even add the
field, therefore setting it to hidden if no altnames data is present
cannot work.
Fix this by only hiding the field if it was actually configured to be
shown in the first place.
Fixes: 691f530d ("network: optionally show alternative interface names")
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
src/node/NetworkEdit.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/node/NetworkEdit.js b/src/node/NetworkEdit.js
index cd9dc7c..601d788 100644
--- a/src/node/NetworkEdit.js
+++ b/src/node/NetworkEdit.js
@@ -465,7 +465,7 @@ Ext.define('Proxmox.node.NetworkEdit', {
if (Ext.isArray(data.altnames)) {
data.altnames = data.altnames.join('<br>');
}
- } else {
+ } else if (me.showAltNames && !me.isCreate) {
me.down('field[name=altnames]').setVisible(false);
}
me.setValues(data);
--
2.47.2
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
WARNING: multiple messages have this Message-ID
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com, pve-devel@lists.proxmox.com,
pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH proxmox-widget-toolkit] network edit: fix hiding of altnames field if disabled by config
Date: Thu, 31 Jul 2025 13:30:15 +0200 [thread overview]
Message-ID: <20250731113015.148881-1-c.ebner@proxmox.com> (raw)
Commit 691f530d ("network: optionally show alternative interface
names") introduced the optional altnames field in the network edit
grid. The chosen default configuration however does not even add the
field, therefore setting it to hidden if no altnames data is present
cannot work.
Fix this by only hiding the field if it was actually configured to be
shown in the first place.
Fixes: 691f530d ("network: optionally show alternative interface names")
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
src/node/NetworkEdit.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/node/NetworkEdit.js b/src/node/NetworkEdit.js
index cd9dc7c..601d788 100644
--- a/src/node/NetworkEdit.js
+++ b/src/node/NetworkEdit.js
@@ -465,7 +465,7 @@ Ext.define('Proxmox.node.NetworkEdit', {
if (Ext.isArray(data.altnames)) {
data.altnames = data.altnames.join('<br>');
}
- } else {
+ } else if (me.showAltNames && !me.isCreate) {
me.down('field[name=altnames]').setVisible(false);
}
me.setValues(data);
--
2.47.2
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
next reply other threads:[~2025-07-31 11:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-31 11:30 Christian Ebner [this message]
2025-07-31 11:30 ` [pmg-devel] " Christian Ebner
2025-07-31 11:30 ` [pve-devel] " Christian Ebner
2025-07-31 11:34 ` [pbs-devel] applied: [pmg-devel] " Thomas Lamprecht
2025-07-31 11:34 ` [pmg-devel] applied: " Thomas Lamprecht
2025-07-31 11:34 ` [pve-devel] applied: [pmg-devel] " 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=20250731113015.148881-1-c.ebner@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
--cc=pmg-devel@lists.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.