diff --git a/ui/scripts/ui-custom/vpc.js b/ui/scripts/ui-custom/vpc.js
index 17cb7c9db70..f4bd5e0059e 100644
--- a/ui/scripts/ui-custom/vpc.js
+++ b/ui/scripts/ui-custom/vpc.js
@@ -75,9 +75,7 @@
context: args.gateways.context,
after: function(args) {
var data = args.data;
- var $loading = $('
').addClass('loading-overlay').appendTo($chart);
var error = function(message) {
- $loading.remove();
cloudStack.dialog.notice({ message: message });
};
@@ -94,10 +92,16 @@
};
var success = function(args) {
if (!$chart.is(':visible')) return;
-
- $loading.remove();
- showGatewayListView();
+
+ cloudStack.dialog.confirm({
+ message: 'Gateway for VPC has been created successfully. Would you like to see its details?',
+ action: showGatewayListView
+ });
};
+
+ cloudStack.dialog.notice({
+ message: 'Your gateway is being created; please see notifications window.'
+ });
cloudStack.ui.notifications.add(
notification,
@@ -132,9 +136,7 @@
cloudStack.dialog.confirm({
message: 'Please confirm that you want to add a Site-to-Site VPN gateway.',
action: function() {
- var $loading = $('
').addClass('loading-overlay').appendTo($chart);
var error = function(message) {
- $loading.remove();
cloudStack.dialog.notice({ message: message });
};
@@ -150,11 +152,16 @@
};
var success = function(args) {
if (!$chart.is(':visible')) return;
-
- $loading.remove();
- showVPNListView();
+ cloudStack.dialog.confirm({
+ message: 'Gateway for VPC has been created successfully. Would you like to see its details?',
+ action: showVPNListView
+ });
};
+ cloudStack.dialog.notice({
+ message: 'Your VPN is being created; please see notifications window.'
+ });
+
cloudStack.ui.notifications.add(
notification,
success, {},