Skip to content
Snippets Groups Projects
Commit 1d2e36da authored by Andreas Ziegler's avatar Andreas Ziegler
Browse files

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

This reverts commit 104d7455.
in its current form it requires you to enter coordinates, which we don't want to enforce by default.
parent 7d79298d
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment