Skip to content

Commit

Permalink
encryption icon with locked/open state
Browse files Browse the repository at this point in the history
  • Loading branch information
Clay-Ferguson committed Dec 15, 2024
1 parent ba8a571 commit fb1f7f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/public/src/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<J.RenderNodeRequest, J.RenderNodeResponse>("anonPageLoad", {
nodeId: S.quanta.config.initialNodeId || "/r/public/home",
nodeId,
upLevel: false,
siblingOffset: 0,
forceRenderParent: false,
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/public/src/comp/node/NodeCompRowHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}));
}
Expand Down

0 comments on commit fb1f7f1

Please sign in to comment.