luci-mod-system: fix reference to undefined variable
authorJo-Philipp Wich <jo@mein.io>
Wed, 23 Dec 2020 16:11:48 +0000 (17:11 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 23 Dec 2020 16:11:48 +0000 (17:11 +0100)
Fixes: 24550446c ("luci-mod-system: fix parsing SSH pubkeys with options")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js

index c0edbf45045f6e0837fea7ba9072c611dc9a73b1..9269a6939596babaebe571e121778864329a596c 100644 (file)
@@ -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'),