Skip to content
Commit 9fc659ad authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-mod-network: dhcp.js: improve behavior with default configuration

 - Hide anonymous section title if only one instance is present
 - Hide section remove button if only one instance is present
 - In case multiple sections are present, label the first and
   subsequent anonymous sections as `Default instance` and
   `Unnamed instance #N` respectively
 - Label named sections as `Instance "XXX"`
 - Label delete buttons as `Remove instance "XXX"`,
   `Remove default instance` or `Remove instance #N` depending on whether
   the associated instance is the first anonymous one, a subsequent
   anonymous one or a named one
 - Label add button as `Add server instance`
 - Add placeholder text `New instance name…` to the section name input

Ref: https://forum.openwrt.org/t/x/194048


Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 0e71b881
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment