public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] ui: storage: oci registry pull: add filename field
@ 2025-11-17 19:14 Filip Schauer
  2025-11-17 21:25 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Filip Schauer @ 2025-11-17 19:14 UTC (permalink / raw)
  To: pve-devel

Expose the filename parameter in the OciRegistryPull window, to allow
users to choose a custom destination file name for the OCI image.

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
---
This patch depends on:
https://lore.proxmox.com/pve-devel/20251117171528.262443-4-f.schauer@proxmox.com/

 www/manager6/storage/TemplateView.js | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/www/manager6/storage/TemplateView.js b/www/manager6/storage/TemplateView.js
index 20794458..d570efb4 100644
--- a/www/manager6/storage/TemplateView.js
+++ b/www/manager6/storage/TemplateView.js
@@ -243,9 +243,12 @@ Ext.define('PVE.storage.OciRegistryPull', {
             xtype: 'inputpanel',
             border: false,
             onGetValues: function (values) {
-                return {
-                    reference: values.reference + ':' + values.tag,
-                };
+                values.reference = values.reference + ':' + values.tag;
+                delete values.tag;
+                if (!values.filename) {
+                    delete values.filename;
+                }
+                return values;
             },
             items: [
                 {
@@ -285,6 +288,12 @@ Ext.define('PVE.storage.OciRegistryPull', {
                     typeAhead: true,
                     comboItems: [],
                 },
+                {
+                    xtype: 'textfield',
+                    name: 'filename',
+                    emptyText: '<reference>_<tag>',
+                    fieldLabel: gettext('File name'),
+                },
             ],
         },
     ],
-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-17 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-17 19:14 [pve-devel] [PATCH manager] ui: storage: oci registry pull: add filename field Filip Schauer
2025-11-17 21:25 ` [pve-devel] applied: " Thomas Lamprecht

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