From fb1f7f176aef0c6b3faf26b599c1b05c3773cc67 Mon Sep 17 00:00:00 2001 From: Clay Ferguson Date: Sun, 15 Dec 2024 14:17:07 -0600 Subject: [PATCH] encryption icon with locked/open state --- src/main/resources/public/src/Util.ts | 3 ++- src/main/resources/public/src/comp/node/NodeCompRowHeader.ts | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/public/src/Util.ts b/src/main/resources/public/src/Util.ts index b8a0c23d0..c04946778 100755 --- a/src/main/resources/public/src/Util.ts +++ b/src/main/resources/public/src/Util.ts @@ -782,8 +782,9 @@ export class Util { await S.nav._messagesToFromMe(); } else { + const nodeId = S.quanta.config.initialNodeId || "/r/public/home"; const res = await S.rpcUtil.rpc("anonPageLoad", { - nodeId: S.quanta.config.initialNodeId || "/r/public/home", + nodeId, upLevel: false, siblingOffset: 0, forceRenderParent: false, diff --git a/src/main/resources/public/src/comp/node/NodeCompRowHeader.ts b/src/main/resources/public/src/comp/node/NodeCompRowHeader.ts index 22c86c40a..975377927 100755 --- a/src/main/resources/public/src/comp/node/NodeCompRowHeader.ts +++ b/src/main/resources/public/src/comp/node/NodeCompRowHeader.ts @@ -65,9 +65,10 @@ export class NodeCompRowHeader extends Comp { })); } - if (S.props.isEncrypted(this.node)) { + if (S.props.getPropStr(J.NodeProp.ENC_KEY, this.node)) { + const lockIcon = S.props.isEncrypted(this.node) ? "fa-lock" : "fa-lock-open"; children.push(new Icon({ - className: "fa fa-lock fa-lg lockIcon mediumMarginRight", + className: `fa ${lockIcon} fa-lg lockIcon mediumMarginRight`, title: "Node is Encrypted." })); }