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:
Brian Federle 2012-06-28 15:32:18 -07:00
parent 66a918f51a
commit f6fb322c7b
2 changed files with 8 additions and 2 deletions

View File

@ -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,

View File

@ -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);