mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
cloudstack 3.0 new UI - disk offering page - add custom field in listView. show disk size as N/A if its value is 0.
This commit is contained in:
parent
df83487be9
commit
45b5a0c2c1
@ -605,13 +605,20 @@
|
||||
label: 'Disk offerings',
|
||||
fields: {
|
||||
name: { label: 'Name' },
|
||||
displaytext: { label: 'Description' },
|
||||
disksize: {
|
||||
label: 'Disk Size',
|
||||
converter: function(args) {
|
||||
return args + " GB";
|
||||
}
|
||||
}
|
||||
displaytext: { label: 'Description' },
|
||||
iscustomized: {
|
||||
label: 'Custom disk size',
|
||||
converter: cloudStack.converters.toBooleanText
|
||||
},
|
||||
disksize: {
|
||||
label: 'Disk Size',
|
||||
converter: function(args) {
|
||||
if(args != 0)
|
||||
return args + " GB";
|
||||
else
|
||||
return "N/A";
|
||||
}
|
||||
}
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
@ -804,13 +811,16 @@
|
||||
isEditable: true
|
||||
},
|
||||
iscustomized: {
|
||||
label: 'Customized',
|
||||
label: 'Custom disk size',
|
||||
converter: cloudStack.converters.toBooleanText
|
||||
},
|
||||
disksize: {
|
||||
label: 'Disk Size',
|
||||
converter: function(args) {
|
||||
return args + " GB";
|
||||
converter: function(args) {
|
||||
if(args != 0)
|
||||
return args + " GB";
|
||||
else
|
||||
return "N/A";
|
||||
}
|
||||
},
|
||||
tags: { label: 'Storage tags' },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user