Skip to content

Commit

Permalink
luci-proto-wireguard: disable peers from the tab
Browse files Browse the repository at this point in the history
It's clumsy to enable/disable peers from the modal, save some clicks

Signed-off-by: Bryan Roessler <[email protected]>
  • Loading branch information
cryobry authored and systemcrash committed Jul 15, 2024
1 parent 40b4131 commit 071fc1b
Show file tree
Hide file tree
Showing 41 changed files with 43 additions and 42 deletions.
2 changes: 1 addition & 1 deletion modules/luci-base/po/ar/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7517,7 +7517,7 @@ msgid "Peer device name"
msgstr "اسم الجهاز الند"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ast/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7196,7 +7196,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/bg/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7265,7 +7265,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/bn_BD/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7204,7 +7204,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ca/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7328,7 +7328,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/cs/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7388,7 +7388,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/da/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7526,7 +7526,7 @@ msgid "Peer device name"
msgstr "Peer-enhedens navn"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Peer deaktiveret"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/de/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7918,7 +7918,7 @@ msgid "Peer device name"
msgstr "Linkpartner-Adaptername"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Verbindungspartner deaktiviert"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/el/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7307,7 +7307,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/en/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7208,7 +7208,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/es/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7726,7 +7726,7 @@ msgid "Peer device name"
msgstr "Nombre del dispositivo del par"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Par desactivado"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/fa/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7202,7 +7202,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/fi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7372,7 +7372,7 @@ msgid "Peer device name"
msgstr "Vertaislaitteen nimi"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Vertainen poistettu käytöstä"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/fr/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7572,7 +7572,7 @@ msgid "Peer device name"
msgstr "Nom du dispositif homologue"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Homologue désactivé"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/he/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7226,7 +7226,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/hi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7204,7 +7204,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/hu/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7384,7 +7384,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/id/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7196,7 +7196,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/it/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7645,7 +7645,7 @@ msgid "Peer device name"
msgstr "Nome del dispositivo peer"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Peer disattivato"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ja/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7413,7 +7413,7 @@ msgid "Peer device name"
msgstr "ピアのデバイス名"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ko/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7286,7 +7286,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/lt/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7771,7 +7771,7 @@ msgid "Peer device name"
msgstr "Lygiarangio įrenginio pavadinimas"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Lygiarangis išjungtas"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/mr/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7202,7 +7202,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ms/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7226,7 +7226,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/nb_NO/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7285,7 +7285,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/nl/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7537,7 +7537,7 @@ msgid "Peer device name"
msgstr "Naam peer-apparaat"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Peer uitgeschakeld"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/pl/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7639,7 +7639,7 @@ msgid "Peer device name"
msgstr "Nazwa urządzenia peera"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Peer wyłączony"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/pt/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7563,7 +7563,7 @@ msgid "Peer device name"
msgstr "Nome do aparelho dos pares"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Par desativado"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/pt_BR/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7585,7 +7585,7 @@ msgid "Peer device name"
msgstr "Nome do dispositivo dos pares"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Par desativado"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ro/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7550,7 +7550,7 @@ msgid "Peer device name"
msgstr "Numele dispozitivului partener"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Partener dezactivat"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ru/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7651,7 +7651,7 @@ msgid "Peer device name"
msgstr "Имя устройства узла"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Узел отключен"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/sk/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7380,7 +7380,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/sv/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7240,7 +7240,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/templates/base.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7193,7 +7193,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/tr/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7604,7 +7604,7 @@ msgid "Peer device name"
msgstr "Eş cihaz adı"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Eş devre dışı"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/uk/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7548,7 +7548,7 @@ msgid "Peer device name"
msgstr "Назва пристрою вузла"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Вузол вимкнено"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/ur/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7202,7 +7202,7 @@ msgid "Peer device name"
msgstr ""

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr ""

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/vi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7500,7 +7500,7 @@ msgid "Peer device name"
msgstr "Tên thiết bị Đồng nghiệp"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "Đồng nghiệp bị vô hiệu hóa"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/zh_Hans/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7397,7 +7397,7 @@ msgid "Peer device name"
msgstr "对端设备名"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "已禁用对端"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
2 changes: 1 addition & 1 deletion modules/luci-base/po/zh_Hant/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -7370,7 +7370,7 @@ msgid "Peer device name"
msgstr "對端裝置名稱"

#: protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js:510
msgid "Peer disabled"
msgid "Disabled"
msgstr "對等已禁用"

#: protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js:274
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,10 @@ return network.registerProtocol('wireguard', {
return E('em', _('No peers defined yet.'));
};

o = ss.option(form.Flag, 'disabled', _('Peer disabled'), _('Enable / Disable peer. Restart wireguard interface to apply changes.'));
o.modalonly = true;
o = ss.option(form.Flag, 'disabled', _('Disabled'), _('Enable / Disable peer. Restart wireguard interface to apply changes.'));
o.editable = true;
o.optional = true;
o.width = '5%';

o = ss.option(form.Value, 'description', _('Description'), _('Optional. Description of peer.'));
o.placeholder = 'My Peer';
Expand Down

0 comments on commit 071fc1b

Please sign in to comment.