From 845569b121308b3be1bebfe544246ee4fd2a8328 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 16 Jul 2012 15:17:23 -0700 Subject: [PATCH] cloudstack 3.0 UI - VPC - create private gateway action - make it async instead of sync. --- ui/scripts/vpc.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 8192c908a8e..f411d1108a0 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -439,7 +439,12 @@ return true; else return false; - }, + }, + messages: { + notification: function(args) { + return 'Add new gateway'; + } + }, createForm: { title: 'Add new gateway', desc: 'Please specify the information to add a new gateway to this VPC.', @@ -476,10 +481,10 @@ args.response.error(parseXMLHttpResponse(json)); } }); - }, - messages: { - notification: function() { return 'Add gateway to VPC'; } - } + }, + notification: { + poll: pollAsyncJobResult + } } }, dataProvider: function(args) {