mirror of
https://github.com/openwrt/luci
synced 2025-01-08 12:08:04 +08:00
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:
parent
40b4131338
commit
071fc1bc92
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user