Add confirm "Change network settings" popup
A modal appears when the user clicks "Save settings".
This modal warns the user of the dangers of changing
network settings.
Change-Id: I20e45e8a814d9c5e3d048a0ed2523025f55d0c4d
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/configuration/controllers/network-controller.js b/app/configuration/controllers/network-controller.js
index 9f7cd3b..433bf8c 100644
--- a/app/configuration/controllers/network-controller.js
+++ b/app/configuration/controllers/network-controller.js
@@ -20,6 +20,7 @@
$scope.set_network_error = '';
$scope.set_network_success = false;
$scope.selectedInterface = '';
+ $scope.confirm_settings = false;
$scope.selectInterface = function(interfaceId) {
$scope.interface = $scope.network.interfaces[interfaceId];
@@ -27,6 +28,8 @@
$scope.networkDevice = false;
};
$scope.setNetworkSettings = function() {
+ // Hides the confirm network settings modal
+ $scope.confirm_settings = false;
$scope.set_network_error = '';
$scope.set_network_success = false;
// TODO openbmc/openbmc#3165: check if the network settings