|
230 | 230 |
|
231 | 231 | action: function(args) { |
232 | 232 | var complete = args.response.success; |
| 233 | + var message = args.response.message; |
233 | 234 | var data = args.data; |
234 | 235 |
|
235 | 236 | var createZone = function(args) { |
| 237 | + message('Creating zone'); |
236 | 238 | var addZoneAction = function(args) { |
237 | 239 | var array1 = []; |
238 | 240 |
|
|
445 | 447 | }; |
446 | 448 |
|
447 | 449 | var createPod = function(args) { |
| 450 | + message('Creating pod'); |
448 | 451 | var array1 = []; |
449 | 452 | array1.push("&zoneId=" + args.data.zone.id); |
450 | 453 | array1.push("&name=" + todb(data.pod.name)); |
|
471 | 474 | }; |
472 | 475 |
|
473 | 476 | var createNetwork = function(args) { |
| 477 | + message('Creating network'); |
474 | 478 | var createNetworkAction = function(selectedZoneObj, args) { |
475 | 479 | var array1 = []; |
476 | 480 | array1.push("&zoneId=" + selectedZoneObj.id); |
|
626 | 630 | }; |
627 | 631 |
|
628 | 632 | var createCluster = function(args) { |
| 633 | + message('Creating cluster'); |
629 | 634 | $.ajax({ |
630 | 635 | url: createURL('addCluster'), |
631 | 636 | data: { |
|
648 | 653 | }; |
649 | 654 |
|
650 | 655 | var createHost = function(args) { |
| 656 | + message('Creating host'); |
651 | 657 | $.ajax({ |
652 | 658 | url: createURL('addHost'), |
653 | 659 | data: { |
|
673 | 679 | }; |
674 | 680 |
|
675 | 681 | var createPrimaryStorage = function(args) { |
| 682 | + message('Creating primary storage'); |
676 | 683 | $.ajax({ |
677 | 684 | url: createURL('createStoragePool'), |
678 | 685 | data: { |
|
697 | 704 | }; |
698 | 705 |
|
699 | 706 | var createSecondaryStorage = function(args) { |
| 707 | + message('Creating secondary storage'); |
700 | 708 | $.ajax({ |
701 | 709 | url: createURL('addSecondaryStorage'), |
702 | 710 | data: { |
|
713 | 721 | }; |
714 | 722 |
|
715 | 723 | var pollSystemVMs = function() { |
| 724 | + message('Creating system VMs (this may take a while)'); |
716 | 725 | var poll = setInterval(function() { |
717 | 726 | $.ajax({ |
718 | 727 | url: createURL('listSystemVms'), |
|
726 | 735 | return vm.state == 'Running'; |
727 | 736 | }).length) { |
728 | 737 | clearInterval(poll); |
729 | | - complete(); |
| 738 | + message('Done!'); |
| 739 | + setTimeout(complete, 1000); |
730 | 740 | } |
731 | 741 | } |
732 | 742 | } |
|
0 commit comments