diff options
| author | beccabroek <beccabroek@gmail.com> | 2018-10-05 10:25:21 -0500 |
|---|---|---|
| committer | beccabroek <beccabroek@gmail.com> | 2018-10-09 13:22:57 -0500 |
| commit | 067a1cd156808a2053a678945c8fc419464e1bf0 (patch) | |
| tree | 5131a8a7c79b3e87f19ad71d249404b18973b057 /app/configuration/controllers/network-controller.html | |
| parent | 8b6f9bf71ae102c1e1afc50ca62310cd6bc37aef (diff) | |
| download | phosphor-webui-067a1cd156808a2053a678945c8fc419464e1bf0.tar.gz phosphor-webui-067a1cd156808a2053a678945c8fc419464e1bf0.zip | |
Update code styling for network page
Now that the following style guide is being
used:
https://google.github.io/styleguide/jsguide.html#naming
Some of the variable naming in this class needs to be updated.
Change-Id: I6ca7a0ea7255ab2314bb4b5fc2d89cff9006039a
Signed-off-by: beccabroek <beccabroek@gmail.com>
Diffstat (limited to 'app/configuration/controllers/network-controller.html')
| -rw-r--r-- | app/configuration/controllers/network-controller.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/configuration/controllers/network-controller.html b/app/configuration/controllers/network-controller.html index 4b75b28..83e37d7 100644 --- a/app/configuration/controllers/network-controller.html +++ b/app/configuration/controllers/network-controller.html @@ -30,7 +30,7 @@ </div> <div class="column small-12 large-3"> <label for="net-config__domain">Default Gateway</label> - <input id="net-config__domain" type="text" ng-model="defaultgateway"/> + <input id="net-config__domain" type="text" ng-model="defaultGateway"/> </div> </fieldset> </section> @@ -55,16 +55,16 @@ <fieldset class="net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values track by $index"> <div class="column small-12 large-3"> <label>IPV4 address</label> - <input id="ipv4-address-{{$index+1}}" ng-change="ipv4.update_address = true" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address"/> + <input id="ipv4-address-{{$index+1}}" ng-change="ipv4.updateAddress = true" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address"/> </div> <div class="column small-12 large-3"> <label>Gateway</label> - <input id="ipv4-gateway-{{$index+1}}" ng-change="ipv4.update_gateway = true" type="text" ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway"/> + <input id="ipv4-gateway-{{$index+1}}" ng-change="ipv4.updateGateway = true" type="text" ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway"/> </div> <!-- This netmask prefix length max only works with IPV4 --> <div class="column small-12 large-6"> <label>Netmask Prefix Length</label> - <input id="ipv4-prefix-{{$index+1}}" class="column small-6" ng-change="ipv4.update_prefix = true" type="number" min="1" max="32" step="1" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.PrefixLength"/> + <input id="ipv4-prefix-{{$index+1}}" class="column small-6" ng-change="ipv4.updatePrefix = true" type="number" min="1" max="32" step="1" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.PrefixLength"/> <button class="network-config_remove-button inline" ng-click="removeIpv4Address($index)">Remove</button> </div> </fieldset> @@ -96,15 +96,15 @@ </div> </fieldset> <div class="network-config__submit-wrapper"> - <button type="button" class="btn-primary inline" ng-click="confirm_settings=true;">Save settings</button> + <button type="button" class="btn-primary inline" ng-click="confirmSettings=true;">Save settings</button> <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button> </div> - <p class="success-msg set_network_success" ng-show="set_network_success" role="alert">Success! Network settings changed!</p> - <p class="set_network_error error-msg" ng-show="set_network_error" role="alert">Error setting {{set_network_error}}!</p> + <p class="success-msg set_network_success" ng-show="setNetworkSuccess" role="alert">Success! Network settings changed!</p> + <p class="set_network_error error-msg" ng-show="setNetworkError" role="alert">Error setting {{setNetworkError}}!</p> </section> </form> </div> -<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_settings}"> +<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirmSettings}"> <div class="modal__tftp-unreachable" role="document"> <div class="screen-reader-offscreen modal-description">Change network settings</div><!-- accessibility only; used for screen readers --> <div class="page-header "> @@ -116,7 +116,7 @@ Proceed with caution and make note of any new settings that may affect connectivity.</p> </div> <div class="modal__button-wrapper"> - <button class="inline btn-secondary" ng-click="confirm_settings=false;">Cancel</button> + <button class="inline btn-secondary" ng-click="confirmSettings=false;">Cancel</button> <button class="inline btn-primary" ng-click="setNetworkSettings()">Continue</button> </div> </div> |

