|
224 | 224 | dataFns.hostCount($.extend(data, { |
225 | 225 | clusterCount: json.listclustersresponse.count ? |
226 | 226 | json.listclustersresponse.count : 0 |
227 | | - })); |
228 | | - |
229 | | - //comment the 4 lines above and uncomment the following 4 lines if listHosts API still responds slowly. |
230 | | - |
231 | | - /* |
232 | | - dataFns.primaryStorageCount($.extend(data, { |
233 | | - clusterCount: json.listclustersresponse.count ? |
234 | | - json.listclustersresponse.count : 0 |
235 | | - })); |
236 | | - */ |
| 227 | + })); |
237 | 228 | } |
238 | 229 | }); |
239 | 230 | }, |
|
266 | 257 | dataFns.secondaryStorageCount($.extend(data, { |
267 | 258 | primaryStorageCount: json.liststoragepoolsresponse.count ? |
268 | 259 | json.liststoragepoolsresponse.count : 0 |
269 | | - })); |
270 | | - |
271 | | - //comment the 4 lines above and uncomment the following 4 lines if listHosts API still responds slowly. |
272 | | - |
273 | | - /* |
274 | | - dataFns.systemVmCount($.extend(data, { |
275 | | - primaryStorageCount: json.liststoragepoolsresponse.count ? |
276 | | - json.liststoragepoolsresponse.count : 0 |
277 | | - })); |
278 | | - */ |
| 260 | + })); |
279 | 261 | } |
280 | 262 | }); |
281 | 263 | }, |
|
9282 | 9264 | url: createURL("deleteHost&id=" + args.context.hosts[0].id + array1.join("")), |
9283 | 9265 | dataType: "json", |
9284 | 9266 | async: true, |
9285 | | - success: function(json) { |
9286 | | - //{ "deletehostresponse" : { "success" : "true"} } |
| 9267 | + success: function(json) { |
9287 | 9268 | args.response.success({data:{}}); |
9288 | 9269 | } |
9289 | 9270 | }); |
|
10651 | 10632 | }, |
10652 | 10633 | action: function(args) { |
10653 | 10634 | $.ajax({ |
10654 | | - url: createURL("deleteHost&id=" + args.context.secondarystorages[0].id), |
10655 | | - dataType: "json", |
10656 | | - async: true, |
| 10635 | + url: createURL('deleteImageStore'), |
| 10636 | + data: { |
| 10637 | + id: args.context.secondarystorages[0].id |
| 10638 | + }, |
10657 | 10639 | success: function(json) { |
10658 | 10640 | args.response.success(); |
10659 | 10641 | } |
|
10681 | 10663 |
|
10682 | 10664 | dataProvider: function(args) { |
10683 | 10665 | $.ajax({ |
10684 | | - url: createURL("listImageStores&type=image&id=" + args.context.secondarystorages[0].id), |
| 10666 | + url: createURL("listImageStores&id=" + args.context.secondarystorages[0].id), |
10685 | 10667 | dataType: "json", |
10686 | 10668 | async: true, |
10687 | 10669 | success: function(json) { |
|
0 commit comments