[pbs-devel] [PATCH proxmox-backup v4 44/45] ui: render s3 refresh as valid maintenance type and task description

Christian Ebner c.ebner at proxmox.com
Mon Jun 23 11:41:05 CEST 2025


Analogous to the maintenance type `unmount`, show the `s3-refresh` as
translated string in the maintenance mode options and task
description.

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 www/Utils.js                     | 1 +
 www/window/MaintenanceOptions.js | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/Utils.js b/www/Utils.js
index 17045f1e1..f0cdda935 100644
--- a/www/Utils.js
+++ b/www/Utils.js
@@ -440,6 +440,7 @@ Ext.define('PBS.Utils', {
             prunejob: (type, id) => PBS.Utils.render_prune_job_worker_id(id, gettext('Prune Job')),
             reader: (type, id) => PBS.Utils.render_datastore_worker_id(id, gettext('Read Objects')),
             'rewind-media': [gettext('Drive'), gettext('Rewind Media')],
+            's3-refresh': [gettext('Datastore'), gettext('S3 Refresh')],
             sync: ['Datastore', gettext('Remote Sync')],
             syncjob: [gettext('Sync Job'), gettext('Remote Sync')],
             'tape-backup': (type, id) =>
diff --git a/www/window/MaintenanceOptions.js b/www/window/MaintenanceOptions.js
index 292353556..9a735e5e8 100644
--- a/www/window/MaintenanceOptions.js
+++ b/www/window/MaintenanceOptions.js
@@ -90,13 +90,17 @@ Ext.define('PBS.window.MaintenanceOptions', {
         }
 
         let unmounting = options['maintenance-type'] === 'unmount';
+        let s3Refresh = options['maintenance-type'] === 's3-refresh';
         let defaultType = options['maintenance-type'] === '__default__';
         if (unmounting) {
             options['maintenance-type'] = gettext('Unmounting');
         }
+        if (s3Refresh) {
+            options['maintenance-type'] = gettext('S3 Refresh');
+        }
 
         me.callParent([options]);
 
-        me.lookupReference('message-field').setDisabled(unmounting || defaultType);
+        me.lookupReference('message-field').setDisabled(unmounting || s3Refresh || defaultType);
     },
 });
-- 
2.47.2





More information about the pbs-devel mailing list