[PATCH pve-manager 2/2] www: storage: enable upload for snippets
LightDiscord
root at arnaud.sh
Wed Jul 17 20:23:59 CEST 2024
From: Arnaud Pascal <root at arnaud.sh>
Signed-off-by: Arnaud Pascal <root at 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
More information about the pve-devel
mailing list