ui: change comment column to notes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-11-24 10:09:34 +01:00 committed by Thomas Lamprecht
parent c2d24034d5
commit ef402242d8
3 changed files with 9 additions and 9 deletions

View File

@ -238,8 +238,8 @@ Ext.define('PVE.grid.BackupView', {
dataIndex: 'volid' dataIndex: 'volid'
}, },
{ {
header: gettext('Comment'), header: gettext('Notes'),
dataIndex: 'comment', dataIndex: 'notes',
flex: 1, flex: 1,
renderer: Ext.htmlEncode, renderer: Ext.htmlEncode,
}, },

View File

@ -53,7 +53,7 @@ Ext.define('PVE.storage.Browser', {
title: gettext('Backups'), title: gettext('Backups'),
iconCls: 'fa fa-floppy-o', iconCls: 'fa fa-floppy-o',
itemId: 'contentBackup', itemId: 'contentBackup',
hasCommentColumn: true, hasNotesColumn: true,
}); });
} }
if (contents.includes('images')) { if (contents.includes('images')) {

View File

@ -333,11 +333,11 @@ Ext.define('PVE.storage.ContentView', {
renderer: PVE.Utils.render_storage_content, renderer: PVE.Utils.render_storage_content,
dataIndex: 'text', dataIndex: 'text',
}, },
'comment': { 'notes': {
header: gettext('Comment'), header: gettext('Notes'),
flex: 1, flex: 1,
renderer: Ext.htmlEncode, renderer: Ext.htmlEncode,
dataIndex: 'comment', dataIndex: 'notes',
}, },
'date': { 'date': {
header: gettext('Date'), header: gettext('Date'),
@ -359,8 +359,8 @@ Ext.define('PVE.storage.ContentView', {
if (me.hideColumns) { if (me.hideColumns) {
me.hideColumns.forEach(key => delete availableColumns[key]); me.hideColumns.forEach(key => delete availableColumns[key]);
} else if (!me.hasCommentColumn) { } else if (!me.hasNotesColumn) {
delete availableColumns.comment; delete availableColumns.notes;
} }
const columns = Object.values(availableColumns); const columns = Object.values(availableColumns);
@ -381,7 +381,7 @@ Ext.define('PVE.storage.ContentView', {
extend: 'Ext.data.Model', extend: 'Ext.data.Model',
fields: [ fields: [
'volid', 'content', 'format', 'size', 'used', 'vmid', 'volid', 'content', 'format', 'size', 'used', 'vmid',
'channel', 'id', 'lun', 'comment', 'verification', 'channel', 'id', 'lun', 'notes', 'verification',
{ {
name: 'text', name: 'text',
convert: function(value, record) { convert: function(value, record) {