shwstppr opened a new pull request #3244: [WIP DO NOT MERGE] ui: instance 
settings visibility
URL: https://github.com/apache/cloudstack/pull/3244
 
 
   ## Description
   **Problem**: Instance settings tab is visible only for stopped VMs but 
hidden otherwise. This creates confusion as users may not know that VMs need to 
be stopped to access settings page. Some VM details need to be read-only for 
the user.
   
   **Root Cause**: The UI Code hides the settings tab for VMs that are not in 
stopped state. Instance setting tab should always be visible, but only 
changeable when VM is stopped. Required instance details are not read-only for 
the user.
   
   **Solution**: The settings tab is now always visible for VMs. If VM is not 
in the stopped state, no interactions are allowed in the settings tab view by 
greying out its content and a popup is shown to advise users for stopping the 
VM. VM details can be made read-only in UI for the user using 
“user.vm.readonly.ui.details” which accepts a comma-separated list of details. 
Read-only details will be shown in the settings tab in UI but the action button 
for them will be disabled and greyed out.
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [x] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [x] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## Screenshots (if appropriate):
   Snapshot when VM is stopped.
   ![screenshot from 2019-01-09 
22-08-03](https://user-images.githubusercontent.com/43956255/50913773-18abc300-145b-11e9-8786-89f91a7508c7.png)
   Snapshot when VM is not stopped but Settings tab is clicked and Popup appears
   ![screenshot from 2019-01-09 
17-54-40](https://user-images.githubusercontent.com/43956255/50913775-19445980-145b-11e9-8a25-6c945528cf96.png)
   When popup is dismissed
   ![screenshot from 2019-01-09 
17-54-55](https://user-images.githubusercontent.com/43956255/50913774-19445980-145b-11e9-8cdd-a9f450b5af81.png)
   
   VM setting/detail made read-only
   ![Screenshot from 2019-03-14 
14-13-49](https://user-images.githubusercontent.com/153340/54343019-d6258300-4663-11e9-81e7-fd7d9caaaf3a.png)
   
   
   ## How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to 
-->
   <!-- see how your change affects other areas of the code, etc. -->
   
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md)
 document -->
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to