From 40492a562ff37a2b8adaa6c7db2d1b673e86e43c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 28 Oct 2020 18:24:29 +0100 Subject: [PATCH] ui: datastore: extend action tooltips with IDs Signed-off-by: Thomas Lamprecht --- www/DataStoreContent.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js index 33f4a000..7b4e9eae 100644 --- a/www/DataStoreContent.js +++ b/www/DataStoreContent.js @@ -519,25 +519,25 @@ Ext.define('PBS.DataStoreContent', { items: [ { handler: 'onVerify', - tooltip: gettext('Verify'), + getTip: (v, m, rec) => Ext.String.format(gettext("Verify '{0}'"), v), getClass: (v, m, rec) => rec.data.leaf ? 'pmx-hidden' : 'pve-icon-verify-lettering', isDisabled: (v, r, c, i, rec) => !!rec.data.leaf, }, { handler: 'onPrune', - tooltip: gettext('Prune'), + getTip: (v, m, rec) => Ext.String.format(gettext("Prune '{0}'"), v), getClass: (v, m, rec) => rec.parentNode.id ==='root' ? 'fa fa-scissors' : 'pmx-hidden', isDisabled: (v, r, c, i, rec) => rec.parentNode.id !=='root', }, { handler: 'onForget', - tooltip: gettext('Forget Snapshot'), + getTip: (v, m, rec) => Ext.String.format(gettext("Permanently forget snapshot '{0}'"), v), getClass: (v, m, rec) => !rec.data.leaf && rec.parentNode.id !== 'root' ? 'fa critical fa-trash-o' : 'pmx-hidden', isDisabled: (v, r, c, i, rec) => rec.data.leaf || rec.parentNode.id === 'root', }, { handler: 'downloadFile', - tooltip: gettext('Download'), + getTip: (v, m, rec) => Ext.String.format(gettext("Download '{0}'"), v), getClass: (v, m, rec) => rec.data.leaf && rec.data.filename ? 'fa fa-download' : 'pmx-hidden', isDisabled: (v, r, c, i, rec) => !rec.data.leaf || !rec.data.filename || rec.data['crypt-mode'] > 2, },