From: Thomas Lamprecht Date: Wed, 28 Oct 2020 17:24:29 +0000 (+0100) Subject: ui: datastore: extend action tooltips with IDs X-Git-Tag: v0.9.2~8 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=40492a562ff37a2b8adaa6c7db2d1b673e86e43c;p=proxmox-backup.git ui: datastore: extend action tooltips with IDs Signed-off-by: Thomas Lamprecht --- 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, },