diff --git a/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.html b/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.html index e04dbd3de..afdb520ce 100644 --- a/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.html +++ b/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.html @@ -40,6 +40,7 @@

+

Static DHCP

@@ -57,20 +58,21 @@ - - - + +
Device Name - + + +
+ + +
-
- -
diff --git a/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.js b/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.js index fd316e833..f02efb2e5 100644 --- a/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.js +++ b/luciexpress/htdocs/plugins/internet/widgets/uci.network.interface.edit.js @@ -45,6 +45,12 @@ JUCI.app $scope.$apply(); }); } + $scope.onRemoveStaticDHCP = function(host){ + if(!host) return; + host.$delete().done(function(){ + $scope.$apply(); + }); + } $scope.onAddExistingHost = function(){ var item = $scope.existingHost; $uci.dhcp.create({