Skip to content

Commit

Permalink
luci-mod-network: add disabled option for interface
Browse files Browse the repository at this point in the history
Enabled by default. If the interface is in use, the user will be asked
to confirm.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
  • Loading branch information
systemcrash committed Jan 31, 2024
1 parent 2dc1fcc commit 8a0ee66
Show file tree
Hide file tree
Showing 39 changed files with 153 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/luci-base/htdocs/luci-static/resources/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -4539,7 +4539,8 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
for (var j = 0; this.changes && this.changes.network && j < this.changes.network.length; j++) {
var chg = this.changes.network[j];

if (chg[0] == 'set' && chg[1] == iif && (chg[2] == 'proto' || chg[2] == 'ipaddr' || chg[2] == 'netmask'))
if (chg[0] == 'set' && chg[1] == iif &&
((chg[2] == 'disabled' && chg[3] == '1') || chg[2] == 'proto' || chg[2] == 'ipaddr' || chg[2] == 'netmask'))
return iif;
}
}
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ar/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2435,6 +2435,10 @@ msgstr "تعطيل التشفير"
msgid "Disable Inactivity Polling"
msgstr "تعطيل أخذ عينات الخمول"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "تعطيل هذه الواجهة"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "تعطيل هذه الشبكة"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/bg/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,10 @@ msgstr "Деактивиране на криптирането"
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Забраняване на тази интерфейс"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Забраняване на тази мрежа"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/bn_BD/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ca/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2451,6 +2451,10 @@ msgstr "Deshabilita el xifrat"
msgid "Disable Inactivity Polling"
msgstr "Deshabilita la comprovació d'inactivitat"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Inhabilita aquesta interfície"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Deshabilita aquesta xarxa"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/cs/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2462,6 +2462,10 @@ msgstr "Zakázat šifrování"
msgid "Disable Inactivity Polling"
msgstr "Zakázat dotazování na nečinnost"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Vypnout tuto síť"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/da/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2508,6 +2508,10 @@ msgstr "Deaktiver kryptering"
msgid "Disable Inactivity Polling"
msgstr "Deaktivere opsamling af inaktivitet"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Deaktivere dette interface"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Deaktivere dette netværk"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/de/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2531,6 +2531,10 @@ msgstr "Verschlüsselung deaktivieren"
msgid "Disable Inactivity Polling"
msgstr "Inaktivitäts-Proben deaktivieren"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Deaktivieren dieser Schnittstelle"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Dieses Netzwerk deaktivieren"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/el/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2439,6 +2439,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Απενεργοποίηση αυτής της διασύνδεσης"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/en/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2381,6 +2381,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/es/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2553,6 +2553,10 @@ msgstr "Desactivar encriptación"
msgid "Disable Inactivity Polling"
msgstr "Desactivar sondeo de inactividad"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Desactivar esta interfaz"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Desactivar esta red"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/fi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,10 @@ msgstr "Poista salaus käytöstä"
msgid "Disable Inactivity Polling"
msgstr "Poista käyttämättömyyskyselyt käytöstä"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Poista tämä sovitinta käytöstä"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Poista tämä verkko käytöstä"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/fr/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2537,6 +2537,10 @@ msgstr "Désactiver le chiffrement"
msgid "Disable Inactivity Polling"
msgstr "Désactiver l'interrogation d'inactivité"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Désactiver cette interface"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Désactiver ce réseau"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/he/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2396,6 +2396,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/hi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2378,6 +2378,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/hu/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2451,6 +2451,10 @@ msgstr "Titkosítás letiltása"
msgid "Disable Inactivity Polling"
msgstr "Inaktivitás lekérdezésének letiltása"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Ez interfész letiltása"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Hálózat letiltása"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/it/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,10 @@ msgstr "Disattiva crittografia"
msgid "Disable Inactivity Polling"
msgstr "Disattiva il polling di inattività"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Disattiva questa interfaccia"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Disattiva questa rete"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ja/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2454,6 +2454,10 @@ msgstr "暗号化を無効化"
msgid "Disable Inactivity Polling"
msgstr "非アクティブ状態のポーリングを無効化"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "このインタフェースを無効にする"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "このネットワークを無効化"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ko/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2433,6 +2433,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "이 인터페이스 비활성화"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/lt/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2567,6 +2567,10 @@ msgstr "Išjungti šifravimas"
msgid "Disable Inactivity Polling"
msgstr "Išjungti neaktyvumo apklausinėjimą/stebėjimą"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Išjungti šią sąsają"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Išjungti šį tinklą"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/mr/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ms/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2381,6 +2381,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/nb_NO/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2418,6 +2418,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Deaktivere dette grensesnittet"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/nl/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2507,6 +2507,10 @@ msgstr "Encryptie uitschakelen"
msgid "Disable Inactivity Polling"
msgstr "Inactiviteitspolling uitschakelen"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Dit interface uitschakelen"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Dit netwerk uitschakelen"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/pl/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2531,6 +2531,10 @@ msgstr "Wyłącz szyfrowanie"
msgid "Disable Inactivity Polling"
msgstr "Wyłącz badanie nieaktywności"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Wyłącz tę interfejs"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Wyłącz tę sieć"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/pt/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2528,6 +2528,10 @@ msgstr "Desativar encriptação"
msgid "Disable Inactivity Polling"
msgstr "Desactivar a Polling de Inactividade"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Desativar esta interface"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Desativar esta rede"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/pt_BR/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2533,6 +2533,10 @@ msgstr "Desabilitar Cifragem"
msgid "Disable Inactivity Polling"
msgstr "Desative a sondagem de inatividade"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Desativar esta interface"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Desabilitar esta rede"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ro/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2526,6 +2526,10 @@ msgstr "Dezactivați Criptarea"
msgid "Disable Inactivity Polling"
msgstr "Dezactivați verificarea inactivității"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Dezactivați această interfața"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Dezactivați această rețea"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ru/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2544,6 +2544,10 @@ msgstr "Отключить шифрование"
msgid "Disable Inactivity Polling"
msgstr "Отключить отслеживание неактивности клиентов"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Отключить этот интерфейс"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Отключить данную сеть"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/sk/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2479,6 +2479,10 @@ msgstr "Zakázať šifrovanie"
msgid "Disable Inactivity Polling"
msgstr "Zakázať dotazovanie na nečinnosť"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Zakázať túto rozhranie"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Zakázať túto sieť"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/sv/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,10 @@ msgstr "Inaktivera kryptering"
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Inaktivera detta gränssnitt"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Inaktivera det här nätverket"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/templates/base.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/tr/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2507,6 +2507,10 @@ msgstr "Şifrelemeyi Devre Dışı Bırak"
msgid "Disable Inactivity Polling"
msgstr "Hareketsizlik Yoklamasını Devre Dışı Bırak"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Bu arayüzü devre dışı bırak"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Bu ağı devre dışı bırak"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/uk/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2529,6 +2529,10 @@ msgstr "Вимкнути шифрування"
msgid "Disable Inactivity Polling"
msgstr "Вимкнути опитування неактивності"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Вимкнути цей інтерфейс"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Вимкнути цю мережу"
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/ur/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2375,6 +2375,10 @@ msgstr ""
msgid "Disable Inactivity Polling"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions modules/luci-base/po/vi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -2495,6 +2495,10 @@ msgstr "Vô hiệu hóa mã hóa"
msgid "Disable Inactivity Polling"
msgstr "Vô hiệu hóa thăm dò tín hiệu không hoạt động"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js:598
msgid "Disable this interface"
msgstr "Vô hiệu hóa giao diện"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:889
msgid "Disable this network"
msgstr "Vô hiệu hóa mạng này"
Expand Down
Loading

0 comments on commit 8a0ee66

Please sign in to comment.