From b9c806b0647dd07d9893b4ab1a70da54d40f74da Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 23 Dec 2020 17:11:48 +0100 Subject: [PATCH] luci-mod-system: fix reference to undefined variable Fixes: 24550446c ("luci-mod-system: fix parsing SSH pubkeys with options") Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/system/sshkeys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js index c0edbf4504..9269a69395 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js @@ -106,7 +106,7 @@ var SSHPubkeyDecoder = L.Class.singleton({ function renderKeyItem(pubkey) { return E('div', { class: 'item', - click: isReadonlyView ? null : removeKey, + click: removeKey, 'data-key': pubkey.src }, [ E('strong', pubkey.comment || _('Unnamed key')), E('br'), -- 2.30.2