mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 13:36:37 +00:00
ui: make protected column header use the icon only
to avoid using to much space, as the icon appears on hitting "change protection" and the tooltip is set to "Protected" it should be still quite clear. Further UX improvement can be made by adding a context menu with can use words for all actions Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bc54c47377
commit
528c24b569
@ -330,9 +330,10 @@ Ext.define('PVE.grid.BackupView', {
|
|||||||
renderer: Ext.htmlEncode,
|
renderer: Ext.htmlEncode,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: gettext('Protected'),
|
header: `<i class="fa fa-shield"></i>`,
|
||||||
width: 100,
|
tooltip: gettext('Protected'),
|
||||||
renderer: (value) => value ? '<i class="fa fa-shield"></i>' : '',
|
width: 30,
|
||||||
|
renderer: v => v ? `<i data-qtip="${gettext('Protected')}" class="fa fa-shield"></i>` : '',
|
||||||
sorter: (a, b) => (b.data.protected || 0) - (a.data.protected || 0),
|
sorter: (a, b) => (b.data.protected || 0) - (a.data.protected || 0),
|
||||||
dataIndex: 'protected',
|
dataIndex: 'protected',
|
||||||
},
|
},
|
||||||
|
@ -161,9 +161,10 @@ Ext.define('PVE.storage.ContentView', {
|
|||||||
dataIndex: 'notes',
|
dataIndex: 'notes',
|
||||||
},
|
},
|
||||||
'protected': {
|
'protected': {
|
||||||
header: gettext('Protected'),
|
header: `<i class="fa fa-shield"></i>`,
|
||||||
width: 100,
|
tooltip: gettext('Protected'),
|
||||||
renderer: (value) => value ? '<i class="fa fa-shield"></i>' : '',
|
width: 30,
|
||||||
|
renderer: v => v ? `<i data-qtip="${gettext('Protected')}" class="fa fa-shield"></i>` : '',
|
||||||
sorter: (a, b) => (b.data.protected || 0) - (a.data.protected || 0),
|
sorter: (a, b) => (b.data.protected || 0) - (a.data.protected || 0),
|
||||||
dataIndex: 'protected',
|
dataIndex: 'protected',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user