Skip to content

Commit bea095f

Browse files
author
Jessica Wang
committed
CLOUDSTACK-4142: UI > VPC > tier > detailView > edit action > network offering dropdown > get current network offering from listNetworks API response instead of listNetworkOfferings API response.
1 parent aebcec2 commit bea095f

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

‎ui/scripts/vpc.js‎

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,20 +3463,13 @@
34633463
});
34643464
}
34653465
});
3466-
$.ajax({
3467-
url: createURL("listNetworkOfferings&id=" + args.context.networks[0].networkofferingid), //include currently selected network offeirng to dropdown
3468-
dataType: "json",
3469-
async: false,
3470-
success: function(json) {
3471-
var networkOfferingObjs = json.listnetworkofferingsresponse.networkoffering;
3472-
$(networkOfferingObjs).each(function() {
3473-
items.push({
3474-
id: this.id,
3475-
description: this.displaytext
3476-
});
3477-
});
3478-
}
3479-
});
3466+
3467+
//include currently selected network offeirng to dropdown
3468+
items.push({
3469+
id: args.context.networks[0].networkofferingid,
3470+
description: args.context.networks[0].networkofferingdisplaytext
3471+
});
3472+
34803473
args.response.success({
34813474
data: items
34823475
});

0 commit comments

Comments
 (0)