This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.11 by this push:
     new 4c66908  ui: Fix clicking the previous button to go back to the 
Physical Network screen in the Add Zone Wizard (#2767)
4c66908 is described below

commit 4c66908b1fd90353a365b8bf74d51c3ef96ce4bd
Author: ernjvr <ern...@gmail.com>
AuthorDate: Wed Jul 25 18:44:34 2018 +0200

    ui: Fix clicking the previous button to go back to the Physical Network 
screen in the Add Zone Wizard (#2767)
    
    In the Add Zone Wizard, when a user lands on the Physical Network page, by 
default the first Physical Network gets initialized with the 3 Traffic Types: 
Guest, Management and Public. When a user drags the Management or Public 
Traffic Types from the first Physical Network to a second or nth Physical 
Network and then clicks the next button to go to the next screen, and then 
decides to click the previous button to go back to the Physical Network screen, 
the UI initializes the physicalNet [...]
    A fix was made so that when a user clicks the previous button to go back to 
the Physical Network screen, it does not initialize the physicalNetwork again, 
therefore leaving the user-defined Traffic Type configuration as it was before 
the next button was clicked.
---
 ui/scripts/ui-custom/zoneWizard.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui/scripts/ui-custom/zoneWizard.js 
b/ui/scripts/ui-custom/zoneWizard.js
index 9ae599b..7906478 100644
--- a/ui/scripts/ui-custom/zoneWizard.js
+++ b/ui/scripts/ui-custom/zoneWizard.js
@@ -1180,7 +1180,9 @@
                         break;
 
                     case 'setupPhysicalNetwork':
-                        physicalNetwork.init($wizard);
+                        if(!goBack) {
+                            physicalNetwork.init($wizard);
+                        }
                 }
 
                 if ($uiCustom.size()) {

Reply via email to