luci-proto-wireguard: disable peers from the tab

It's clumsy to enable/disable peers from the modal, save some clicks

Signed-off-by: Bryan Roessler <bryanroessler@gmail.com>
This commit is contained in:
Bryan Roessler 2024-07-15 15:15:29 -04:00 committed by Paul Donald
parent 40b4131338
commit 071fc1bc92
41 changed files with 43 additions and 42 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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';