From e707fd2b3b85773cb9126fd52b1b9a5b87cbfbac Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 30 Oct 2020 14:02:58 +0100 Subject: [PATCH] ui: Utils: add product specific task descriptions and sort them alphabetically Signed-off-by: Dominik Csapak --- www/Utils.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/www/Utils.js b/www/Utils.js index 58319345..6c890659 100644 --- a/www/Utils.js +++ b/www/Utils.js @@ -97,17 +97,20 @@ Ext.define('PBS.Utils', { // do whatever you want here Proxmox.Utils.override_task_descriptions({ + backup: (type, id) => PBS.Utils.render_datastore_worker_id(id, gettext('Backup')), + dircreate: [gettext('Directory Storage'), gettext('Create')], + dirremove: [gettext('Directory'), gettext('Remove')], garbage_collection: ['Datastore', gettext('Garbage collect')], + logrotate: [gettext('Log'), gettext('Rotation')], + prune: (type, id) => PBS.Utils.render_datastore_worker_id(id, gettext('Prune')), + reader: (type, id) => PBS.Utils.render_datastore_worker_id(id, gettext('Read objects')), sync: ['Datastore', gettext('Remote Sync')], + syncjob: [gettext('Sync Job'), gettext('Remote Sync')], verify: ['Datastore', gettext('Verification')], verify_group: ['Group', gettext('Verification')], verify_snapshot: ['Snapshot', gettext('Verification')], - syncjob: [gettext('Sync Job'), gettext('Remote Sync')], verifyjob: [gettext('Verify Job'), gettext('Scheduled Verification')], - prune: (type, id) => PBS.Utils.render_datastore_worker_id(id, gettext('Prune')), - backup: (type, id) => PBS.Utils.render_datastore_worker_id(id, gettext('Backup')), - reader: (type, id) => PBS.Utils.render_datastore_worker_id(id, gettext('Read objects')), - logrotate: [gettext('Log'), gettext('Rotation')], + zfscreate: [gettext('ZFS Storage'), gettext('Create')], }); }, });