diff --git a/applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js b/applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js index 96c2fc2d9c4a..aa541c7504c3 100644 --- a/applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js +++ b/applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js @@ -18,6 +18,12 @@ return view.extend({ s.tab('general', _('General Settings')); + o = s.taboption('general', form.Flag, 'enabled', + _('Enabled'), + _('Enable or disable this Watchcat instance')); + o.default = '1'; + o.rmempty = false; + o = s.taboption('general', form.ListValue, 'mode', _('Mode'), _("Ping Reboot: Reboot this device if a ping to a specified host fails for a specified duration of time.
\ diff --git a/applications/luci-app-watchcat/po/templates/watchcat.pot b/applications/luci-app-watchcat/po/templates/watchcat.pot index 7a60bcf57fb4..921fb242b45d 100644 --- a/applications/luci-app-watchcat/po/templates/watchcat.pot +++ b/applications/luci-app-watchcat/po/templates/watchcat.pot @@ -1,7 +1,7 @@ msgid "" msgstr "Content-Type: text/plain; charset=UTF-8" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:94 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:100 msgid "" "Applies to Ping Reboot and Periodic Reboot modes
When " "rebooting the router, the service will trigger a soft reboot. Entering a non-" @@ -10,36 +10,44 @@ msgid "" "use 0 to disable the forced reboot delay." msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:111 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:117 msgid "" "Applies to Ping Reboot and Restart Interface modes
If using " "ModemManager, you can have Watchcat restart your ModemManager interface by " "specifying its name." msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:104 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:110 msgid "" "Applies to Ping Reboot, Restart Interface, and Run Script modes
Specify the interface to monitor and react if a ping over it fails." msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:60 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:66 msgid "Address family for pinging the host" msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:65 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:71 msgid "Any" msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:84 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:90 msgid "Big: 248 bytes" msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:70 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:76 msgid "Check Interval" msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:93 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:23 +msgid "Enable or disable this Watchcat instance" +msgstr "" + +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:22 +msgid "Enabled" +msgstr "" + +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:99 msgid "Force Reboot Delay" msgstr "" @@ -58,11 +66,11 @@ msgid "" "up more than one action." msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:52 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:58 msgid "Hosts To Check" msgstr "" -#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:71 +#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:77 msgid "" "How often to ping the host specified above.

The default unit is " "seconds, without a suffix, but you can use the suffix m for minutes, " @@ -72,21 +80,21 @@ msgid "" "li>