]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: clarify that compression selector is for backup only
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 11 Oct 2023 13:59:42 +0000 (15:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 11 Oct 2023 13:59:45 +0000 (15:59 +0200)
other targets/sources might have a different list of available
compressions.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/Makefile
www/manager6/dc/Backup.js
www/manager6/form/BackupCompressionSelector.js [new file with mode: 0644]
www/manager6/form/CompressionSelector.js [deleted file]
www/manager6/window/Backup.js

index 79c079ab1b196b915d712214be0add82a6edd9c9..17e0ad05103f3cf9e3c603d8285765ab6ae38f0e 100644 (file)
@@ -20,6 +20,7 @@ JSSRC=                                                        \
        form/ACMEAccountSelector.js                     \
        form/ACMEPluginSelector.js                      \
        form/AgentFeatureSelector.js                    \
+       form/BackupCompressionSelector.js               \
        form/BackupModeSelector.js                      \
        form/BandwidthSelector.js                       \
        form/BridgeSelector.js                          \
@@ -30,7 +31,6 @@ JSSRC=                                                        \
        form/CephPoolSelector.js                        \
        form/CephFSSelector.js                          \
        form/ComboBoxSetStoreNode.js                    \
-       form/CompressionSelector.js                     \
        form/ContentTypeSelector.js                     \
        form/ControllerSelector.js                      \
        form/DayOfWeekSelector.js                       \
index 9907695738f92baa7fe14222496daecf4092729a..0c8d2d4fe2fe8636a29fdaeb86f492c97ca42d96 100644 (file)
@@ -367,7 +367,7 @@ Ext.define('PVE.dc.BackupEdit', {
                                    },
                                },
                                {
-                                   xtype: 'pveCompressionSelector',
+                                   xtype: 'pveBackupCompressionSelector',
                                    reference: 'compressionSelector',
                                    fieldLabel: gettext('Compression'),
                                    name: 'compress',
diff --git a/www/manager6/form/BackupCompressionSelector.js b/www/manager6/form/BackupCompressionSelector.js
new file mode 100644 (file)
index 0000000..014b8f7
--- /dev/null
@@ -0,0 +1,10 @@
+Ext.define('PVE.form.BackupCompressionSelector', {
+    extend: 'Proxmox.form.KVComboBox',
+    alias: ['widget.pveBackupCompressionSelector'],
+    comboItems: [
+                ['0', Proxmox.Utils.noneText],
+                ['lzo', 'LZO (' + gettext('fast') + ')'],
+                ['gzip', 'GZIP (' + gettext('good') + ')'],
+                ['zstd', 'ZSTD (' + gettext('fast and good') + ')'],
+    ],
+});
diff --git a/www/manager6/form/CompressionSelector.js b/www/manager6/form/CompressionSelector.js
deleted file mode 100644 (file)
index 745b96d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-Ext.define('PVE.form.CompressionSelector', {
-    extend: 'Proxmox.form.KVComboBox',
-    alias: ['widget.pveCompressionSelector'],
-    comboItems: [
-                ['0', Proxmox.Utils.noneText],
-                ['lzo', 'LZO (' + gettext('fast') + ')'],
-                ['gzip', 'GZIP (' + gettext('good') + ')'],
-                ['zstd', 'ZSTD (' + gettext('fast and good') + ')'],
-    ],
-});
index 17a37e1293f0a72553f7dafd6d59f1ace01eadf1..8e6fa77ea39f16f42caf87bef2b12cc074871e9e 100644 (file)
@@ -18,7 +18,7 @@ Ext.define('PVE.window.Backup', {
            throw "no VM type specified";
        }
 
-       let compressionSelector = Ext.create('PVE.form.CompressionSelector', {
+       let compressionSelector = Ext.create('PVE.form.BackupCompressionSelector', {
            name: 'compress',
            value: 'zstd',
            fieldLabel: gettext('Compression'),