mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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 <abhishek.kumar@shapeblue.com>
This commit is contained in:
parent
29125be369
commit
02cf680bb8
@ -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
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user