mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-10 16:15:38 +00:00
ui: change comment column to notes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c2d24034d5
commit
ef402242d8
@ -238,8 +238,8 @@ Ext.define('PVE.grid.BackupView', {
|
||||
dataIndex: 'volid'
|
||||
},
|
||||
{
|
||||
header: gettext('Comment'),
|
||||
dataIndex: 'comment',
|
||||
header: gettext('Notes'),
|
||||
dataIndex: 'notes',
|
||||
flex: 1,
|
||||
renderer: Ext.htmlEncode,
|
||||
},
|
||||
|
@ -53,7 +53,7 @@ Ext.define('PVE.storage.Browser', {
|
||||
title: gettext('Backups'),
|
||||
iconCls: 'fa fa-floppy-o',
|
||||
itemId: 'contentBackup',
|
||||
hasCommentColumn: true,
|
||||
hasNotesColumn: true,
|
||||
});
|
||||
}
|
||||
if (contents.includes('images')) {
|
||||
|
@ -333,11 +333,11 @@ Ext.define('PVE.storage.ContentView', {
|
||||
renderer: PVE.Utils.render_storage_content,
|
||||
dataIndex: 'text',
|
||||
},
|
||||
'comment': {
|
||||
header: gettext('Comment'),
|
||||
'notes': {
|
||||
header: gettext('Notes'),
|
||||
flex: 1,
|
||||
renderer: Ext.htmlEncode,
|
||||
dataIndex: 'comment',
|
||||
dataIndex: 'notes',
|
||||
},
|
||||
'date': {
|
||||
header: gettext('Date'),
|
||||
@ -359,8 +359,8 @@ Ext.define('PVE.storage.ContentView', {
|
||||
|
||||
if (me.hideColumns) {
|
||||
me.hideColumns.forEach(key => delete availableColumns[key]);
|
||||
} else if (!me.hasCommentColumn) {
|
||||
delete availableColumns.comment;
|
||||
} else if (!me.hasNotesColumn) {
|
||||
delete availableColumns.notes;
|
||||
}
|
||||
const columns = Object.values(availableColumns);
|
||||
|
||||
@ -381,7 +381,7 @@ Ext.define('PVE.storage.ContentView', {
|
||||
extend: 'Ext.data.Model',
|
||||
fields: [
|
||||
'volid', 'content', 'format', 'size', 'used', 'vmid',
|
||||
'channel', 'id', 'lun', 'comment', 'verification',
|
||||
'channel', 'id', 'lun', 'notes', 'verification',
|
||||
{
|
||||
name: 'text',
|
||||
convert: function(value, record) {
|
||||
|
Loading…
Reference in New Issue
Block a user