all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: LightDiscord via pve-devel <pve-devel@lists.proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: LightDiscord <root@arnaud.sh>
Subject: [pve-devel] [PATCH pve-manager 2/2] www: storage: enable upload for snippets
Date: Wed, 17 Jul 2024 18:23:59 +0000	[thread overview]
Message-ID: <mailman.1.1722093010.302.pve-devel@lists.proxmox.com> (raw)
In-Reply-To: <20240717182228.27812-2-root@arnaud.sh>

[-- Attachment #1: Type: message/rfc822, Size: 4434 bytes --]

From: LightDiscord <root@arnaud.sh>
To: pve-devel@lists.proxmox.com
Cc: Arnaud Pascal <root@arnaud.sh>
Subject: [PATCH pve-manager 2/2] www: storage: enable upload for snippets
Date: Wed, 17 Jul 2024 18:23:59 +0000
Message-ID: <20240717182228.27812-7-root@arnaud.sh>

From: Arnaud Pascal <root@arnaud.sh>

Signed-off-by: Arnaud Pascal <root@arnaud.sh>
---
 www/manager6/storage/Browser.js        | 3 +++
 www/manager6/window/UploadToStorage.js | 1 +
 2 files changed, 4 insertions(+)

diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js
index 2123141d..2b46d730 100644
--- a/www/manager6/storage/Browser.js
+++ b/www/manager6/storage/Browser.js
@@ -119,6 +119,9 @@ Ext.define('PVE.storage.Browser', {
 		    itemId: 'contentSnippets',
 		    content: 'snippets',
 		    pluginType: plugin,
+		    enableUploadButton: enableUpload,
+		    enableDownloadUrlButton: enableDownloadUrl,
+		    useUploadButton: true,
 		});
 	    }
 	    if (contents.includes('import')) {
diff --git a/www/manager6/window/UploadToStorage.js b/www/manager6/window/UploadToStorage.js
index 3c5bba88..c5229d9e 100644
--- a/www/manager6/window/UploadToStorage.js
+++ b/www/manager6/window/UploadToStorage.js
@@ -11,6 +11,7 @@ Ext.define('PVE.window.UploadToStorage', {
     acceptedExtensions: {
 	iso: ['.img', '.iso'],
 	vztmpl: ['.tar.gz', '.tar.xz', '.tar.zst'],
+	snippets: ['.yml', '.yaml'],
     },
 
     cbindData: function(initialConfig) {
-- 
2.39.2




[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

      parent reply	other threads:[~2024-07-27 15:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20240717182228.27812-2-root@arnaud.sh>
2024-07-17 18:23 ` [pve-devel] [PATCH pve-storage 1/2] " LightDiscord via pve-devel
2024-07-17 18:23 ` LightDiscord via pve-devel [this message]

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=mailman.1.1722093010.302.pve-devel@lists.proxmox.com \
    --to=pve-devel@lists.proxmox.com \
    --cc=root@arnaud.sh \
    /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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal