commit | 90121f3fa15d73e8cd98eee7aaf853241cec0d2e | [log] [tgz] |
---|---|---|
author | Gunnar Mills <gmills@us.ibm.com> | Sun Sep 16 21:22:45 2018 -0500 |
committer | Gunnar Mills <gmills@us.ibm.com> | Wed Sep 19 20:50:33 2018 +0000 |
tree | 06abc9660edc695bb6aa651ea38a00c80b6f0115 | |
parent | cff615087151fae06ad9d5259ab0fb3bb6a2dd4e [diff] [blame] |
Button to remove NTP server Change-Id: I58a3a894c192fafb551e07302b107bcd776e4901 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/configuration/controllers/date-time-controller.js b/app/configuration/controllers/date-time-controller.js index 02752fe..5a1f8d2 100644 --- a/app/configuration/controllers/date-time-controller.js +++ b/app/configuration/controllers/date-time-controller.js
@@ -133,6 +133,10 @@ $scope.ntp.servers.push(''); }; + $scope.removeNTPField = function(index) { + $scope.ntp.servers.splice(index, 1); + }; + function setNTPServers() { // Remove any empty strings from the array. Important because we add an // empty string to the end so the user can add a new NTP server, if the