ui: fix custom offerings selection in upload volume form (#3479)

Removed duplicate code for diskOffering field.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2019-07-11 15:14:53 +05:30 committed by Rohit Yadav
parent b7988a3e5f
commit 5df11b5c43
1 changed files with 1 additions and 23 deletions

View File

@ -514,29 +514,7 @@
if (this.iscustomized == true) {
items.push({
id: this.id,
description: this.displaytext
});
}
});
args.response.success({
data: items
});
}
},
diskOffering: {
label: 'label.custom.disk.offering',
docID: 'helpVolumeDiskOffering',
select: function(args) {
var diskOfferings = cloudStack.listDiskOfferings({});
var items = [{
id: '',
description: ''
}];
$(diskOfferings).each(function() {
if (this.iscustomized == true) {
items.push({
id: this.id,
description: this.displaytext
description: this.name
});
}
});