Commit 9dc60ef5 authored by Emmanuel Kasper's avatar Emmanuel Kasper Committed by Dietmar Maurer

ext5migration: Replace non working 'text' type with 'string' in model definition

See http://stackoverflow.com/questions/29748414/ext-createbyalias-unrecognized-alias-data-field-text-when-migrating-a-ext4Signed-off-by: 's avatarEmmanuel Kasper <e.kasper@proxmox.com>
parent a94b68b8
...@@ -19,7 +19,7 @@ Ext.define('PVE.data.ResourceStore', { ...@@ -19,7 +19,7 @@ Ext.define('PVE.data.ResourceStore', {
var field_defaults = { var field_defaults = {
type: { type: {
header: gettext('Type'), header: gettext('Type'),
type: 'text', type: 'string',
renderer: PVE.Utils.render_resource_type, renderer: PVE.Utils.render_resource_type,
sortable: true, sortable: true,
hideable: false, hideable: false,
...@@ -27,7 +27,7 @@ Ext.define('PVE.data.ResourceStore', { ...@@ -27,7 +27,7 @@ Ext.define('PVE.data.ResourceStore', {
}, },
id: { id: {
header: 'ID', header: 'ID',
type: 'text', type: 'string',
hidden: true, hidden: true,
sortable: true, sortable: true,
width: 80 width: 80
...@@ -48,7 +48,7 @@ Ext.define('PVE.data.ResourceStore', { ...@@ -48,7 +48,7 @@ Ext.define('PVE.data.ResourceStore', {
}, },
text: { text: {
header: gettext('Description'), header: gettext('Description'),
type: 'text', type: 'string',
sortable: true, sortable: true,
width: 200, width: 200,
convert: function(value, record) { convert: function(value, record) {
...@@ -87,7 +87,7 @@ Ext.define('PVE.data.ResourceStore', { ...@@ -87,7 +87,7 @@ Ext.define('PVE.data.ResourceStore', {
header: gettext('Name'), header: gettext('Name'),
hidden: true, hidden: true,
sortable: true, sortable: true,
type: 'text' type: 'string'
}, },
disk: { disk: {
header: gettext('Disk usage'), header: gettext('Disk usage'),
...@@ -181,21 +181,21 @@ Ext.define('PVE.data.ResourceStore', { ...@@ -181,21 +181,21 @@ Ext.define('PVE.data.ResourceStore', {
}, },
node: { node: {
header: gettext('Node'), header: gettext('Node'),
type: 'text', type: 'string',
hidden: true, hidden: true,
sortable: true, sortable: true,
width: 110 width: 110
}, },
storage: { storage: {
header: gettext('Storage'), header: gettext('Storage'),
type: 'text', type: 'string',
hidden: true, hidden: true,
sortable: true, sortable: true,
width: 110 width: 110
}, },
pool: { pool: {
header: gettext('Pool'), header: gettext('Pool'),
type: 'text', type: 'string',
hidden: true, hidden: true,
sortable: true, sortable: true,
width: 110 width: 110
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment