diff --git a/ui/scripts/ui-custom/vpc.js b/ui/scripts/ui-custom/vpc.js
index fac13f63bd8..5e4a5580f33 100644
--- a/ui/scripts/ui-custom/vpc.js
+++ b/ui/scripts/ui-custom/vpc.js
@@ -69,9 +69,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 });
};
@@ -88,10 +86,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,
@@ -126,9 +130,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 });
};
@@ -144,11 +146,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, {},