diff --git a/package/gluon-config-mode-manman-sync/i18n/de.po b/package/gluon-config-mode-manman-sync/i18n/de.po index 014d314e..0f692b16 100644 --- a/package/gluon-config-mode-manman-sync/i18n/de.po +++ b/package/gluon-config-mode-manman-sync/i18n/de.po @@ -18,6 +18,9 @@ msgstr "ManMan synchronisierung aktivieren" msgid "ManMan location ID" msgstr "ManMan Standort-ID" +msgid "ManMan node (optional)" +msgstr "ManMan Knoten (optional)" + msgid "" "Sync configuration from ManMan by entering ManMan location id here.\n" "This will automatically keep name, location and ips in sync with the values " diff --git a/package/gluon-config-mode-manman-sync/i18n/gluon-config-mode-manman-sync.pot b/package/gluon-config-mode-manman-sync/i18n/gluon-config-mode-manman-sync.pot index 3e7c4638..e68f6185 100644 --- a/package/gluon-config-mode-manman-sync/i18n/gluon-config-mode-manman-sync.pot +++ b/package/gluon-config-mode-manman-sync/i18n/gluon-config-mode-manman-sync.pot @@ -7,6 +7,9 @@ msgstr "" msgid "ManMan location ID" msgstr "" +msgid "ManMan node (optional)" +msgstr "" + msgid "" "Sync configuration from ManMan " "by entering ManMan location id here.\n" diff --git a/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/wizard/0100-manman-sync.lua b/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/wizard/0100-manman-sync.lua index 355253c7..914a744b 100644 --- a/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/wizard/0100-manman-sync.lua +++ b/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/wizard/0100-manman-sync.lua @@ -26,6 +26,14 @@ return function(form, uci) uci:set('gluon-manman-sync', 'sync', 'location_id', data) end + local id = s:option(Value, 'manman_id', pkg_i18n.translate('ManMan node (optional)')) + id:depends(manman, true) + id.default = uci:get('gluon-manman-sync', 'sync', 'node') + id.datatype = 'maxlength(16)' + function id:write(data) + uci:set('gluon-manman-sync', 'sync', 'node', data) + end + function s:write() uci:save('gluon-manman-sync') end