You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2019/07/11 09:45:05 UTC
[cloudstack] branch master updated: ui: fix custom offerings
selection in upload volume form (#3479)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new 5df11b5 ui: fix custom offerings selection in upload volume form (#3479)
5df11b5 is described below
commit 5df11b5c436079cc0a0963eab54f74fdda3cc4b3
Author: Abhishek Kumar <ab...@gmail.com>
AuthorDate: Thu Jul 11 15:14:53 2019 +0530
ui: fix custom offerings selection in upload volume form (#3479)
Removed duplicate code for diskOffering field.
Signed-off-by: Abhishek Kumar <ab...@gmail.com>
---
ui/scripts/storage.js | 24 +-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index e6eaacf..3066fff 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -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
});
}
});