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 02cf680 ui: fix for disk offering quickview details, actions (#3391)
02cf680 is described below
commit 02cf680bb8852fe28fca51b23e44ebd582b3d62c
Author: Abhishek Kumar <[email protected]>
AuthorDate: Fri Jun 14 07:37:31 2019 +0530
ui: fix for disk offering quickview details, actions (#3391)
Fixes #2741
Quickview widget for disk offerings list in the UI was missing offering
details and action items. cloudStack.listDiskOfferings method call for the
details view data provider was not working, therefore, it has been replaced
with direct ajax API call.
Signed-off-by: Abhishek Kumar <[email protected]>
---
ui/scripts/configuration.js | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js
index 4003154..e9670a6 100644
--- a/ui/scripts/configuration.js
+++ b/ui/scripts/configuration.js
@@ -2403,16 +2403,19 @@
dataProvider: function(args) {
var data = {
+ isrecursive: true,
id: args.context.diskOfferings[0].id
};
- var listDiskOfferingsOptions = {
- isRecursive: true,
- data: data
- };
- var diskOfferings =
cloudStack.listDiskOfferings(listDiskOfferingsOptions);
- args.response.success({
- actionFilter: diskOfferingActionfilter,
- data: diskOfferings[0]
+ $.ajax({
+ url: createURL('listDiskOfferings'),
+ dataType: "json",
+ data: data,
+ success: function(json) {
+ var item =
json.listdiskofferingsresponse.diskoffering[0];
+ args.response.success({
+ data: item
+ });
+ }
});
}
}