Revert "gluon-config-mode-geo-location: allow to store coordinates without sharing"

This reverts commit 104d7455fa.
in its current form it requires you to enter coordinates, which we don't want to enforce by default.
This commit is contained in:
Andreas Ziegler 2018-11-27 02:07:04 +01:00
parent 7d79298d38
commit 1d2e36dab5

View File

@ -51,6 +51,7 @@ return function(form, uci)
o = s:option(Value, "latitude", pkg_i18n.translate("Latitude"), pkg_i18n.translatef("e.g. %s", "53.873621"))
o.default = uci:get("gluon-node-info", location, "latitude")
o:depends(share_location, true)
o.datatype = "float"
function o:write(data)
uci:set("gluon-node-info", location, "latitude", data)
@ -59,6 +60,7 @@ return function(form, uci)
o = s:option(Value, "longitude", pkg_i18n.translate("Longitude"), pkg_i18n.translatef("e.g. %s", "10.689901"))
o.default = uci:get("gluon-node-info", location, "longitude")
o:depends(share_location, true)
o.datatype = "float"
function o:write(data)
uci:set("gluon-node-info", location, "longitude", data)
@ -71,6 +73,7 @@ return function(form, uci)
pkg_i18n.translatef("e.g. %s", "11.51")
)
o.default = uci:get("gluon-node-info", location, "altitude")
o:depends(share_location, true)
o.datatype = "float"
o.optional = true
function o:write(data)