protocols: rename type to maptype for map 4374/head
authorRemi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Sat, 15 Aug 2020 14:22:56 +0000 (23:22 +0900)
committerRemi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Sat, 15 Aug 2020 14:22:56 +0000 (23:22 +0900)
commit9282df68942d104f56d7e440293783413f0a7cf9
tree9138fe5d4cfcded239a2e4097c9192df7085cbbb
parentf2e9031b871c7c00695d66441595719385a0b144
protocols: rename type to maptype for map

"type" is already used as a common option for all protocols. This makes
the configuration ambiguous, and Luci sees JS errors when trying to save
a MAP configuration.

Switch to "maptype" instead to avoid the conflict. MAP currently uses
"maptype" and falls back to "type" when not specified.

Signed-off-by: Remi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js