|
75 | 75 | context: args.gateways.context, |
76 | 76 | after: function(args) { |
77 | 77 | var data = args.data; |
78 | | - var $loading = $('<div>').addClass('loading-overlay').appendTo($chart); |
79 | 78 | var error = function(message) { |
80 | | - $loading.remove(); |
81 | 79 | cloudStack.dialog.notice({ message: message }); |
82 | 80 | }; |
83 | 81 |
|
|
94 | 92 | }; |
95 | 93 | var success = function(args) { |
96 | 94 | if (!$chart.is(':visible')) return; |
97 | | - |
98 | | - $loading.remove(); |
99 | | - showGatewayListView(); |
| 95 | + |
| 96 | + cloudStack.dialog.confirm({ |
| 97 | + message: 'Gateway for VPC has been created successfully. Would you like to see its details?', |
| 98 | + action: showGatewayListView |
| 99 | + }); |
100 | 100 | }; |
| 101 | + |
| 102 | + cloudStack.dialog.notice({ |
| 103 | + message: 'Your gateway is being created; please see notifications window.' |
| 104 | + }); |
101 | 105 |
|
102 | 106 | cloudStack.ui.notifications.add( |
103 | 107 | notification, |
|
132 | 136 | cloudStack.dialog.confirm({ |
133 | 137 | message: 'Please confirm that you want to add a Site-to-Site VPN gateway.', |
134 | 138 | action: function() { |
135 | | - var $loading = $('<div>').addClass('loading-overlay').appendTo($chart); |
136 | 139 | var error = function(message) { |
137 | | - $loading.remove(); |
138 | 140 | cloudStack.dialog.notice({ message: message }); |
139 | 141 | }; |
140 | 142 |
|
|
150 | 152 | }; |
151 | 153 | var success = function(args) { |
152 | 154 | if (!$chart.is(':visible')) return; |
153 | | - |
154 | | - $loading.remove(); |
155 | | - showVPNListView(); |
| 155 | + cloudStack.dialog.confirm({ |
| 156 | + message: 'Gateway for VPC has been created successfully. Would you like to see its details?', |
| 157 | + action: showVPNListView |
| 158 | + }); |
156 | 159 | }; |
157 | 160 |
|
| 161 | + cloudStack.dialog.notice({ |
| 162 | + message: 'Your VPN is being created; please see notifications window.' |
| 163 | + }); |
| 164 | + |
158 | 165 | cloudStack.ui.notifications.add( |
159 | 166 | notification, |
160 | 167 | success, {}, |
|
0 commit comments