mirror of https://github.com/apache/cloudstack.git
Fix add tier UI
Properly pass context for add tier dialog, which broke due to recent changes that requires context to be present, for the action filter.
This commit is contained in:
parent
66a918f51a
commit
f6fb322c7b
|
|
@ -344,7 +344,9 @@
|
|||
var actions = args.actions;
|
||||
var vmListView = args.vmListView;
|
||||
var actionPreFilter = args.actionPreFilter;
|
||||
var context = args.context;
|
||||
var tier = $.extend(args.tier, {
|
||||
context: context,
|
||||
vmListView: vmListView,
|
||||
actions: actions,
|
||||
actionPreFilter: actionPreFilter,
|
||||
|
|
@ -390,6 +392,9 @@
|
|||
function(args) {
|
||||
$loading.remove();
|
||||
addNewTier({
|
||||
context: $.extend(true, {}, context, {
|
||||
tiers: [tier]
|
||||
}),
|
||||
tier: tier,
|
||||
$tiers: $tiers,
|
||||
actions: actions,
|
||||
|
|
|
|||
|
|
@ -384,7 +384,8 @@
|
|||
args.response.success({
|
||||
data: {
|
||||
name: args.data.name,
|
||||
cidr: args.data.cidr
|
||||
cidr: args.data.cidr,
|
||||
state: 'Stopped'
|
||||
}
|
||||
});
|
||||
}, 500);
|
||||
|
|
@ -474,7 +475,7 @@
|
|||
setTimeout(function() {
|
||||
args.response.success({
|
||||
data: {
|
||||
tiers: tiers
|
||||
tiers: []
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
|
|
|
|||
Loading…
Reference in New Issue