Skip to content

Commit

Permalink
Merge pull request #29 from stefanak-michal/1-history
Browse files Browse the repository at this point in the history
always showing properties button in stash.
  • Loading branch information
stefanak-michal authored Oct 26, 2023
2 parents bad6b52 + 54bbbbd commit f0f9858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stefanak-michal/cyphergui",
"version": "0.1.13",
"version": "0.2.0",
"private": true,
"homepage": ".",
"license": "Apache-2.0",
Expand Down
8 changes: 3 additions & 5 deletions src/components/InlineNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ export default class InlineNode extends React.Component<{ node: _Node; tabManage
color={!!this.props.small ? "is-small" : ""}
text={"#" + db.strInt(this.props.node.identity)}
/>
{Object.keys(this.props.node.properties).length > 0 && (
<PropertiesModalContext.Consumer>
{fn => <Button icon="fa-solid fa-rectangle-list" onClick={() => fn(this.props.node.properties)} color={"ml-1 " + (!!this.props.small ? "is-small" : "")} />}
</PropertiesModalContext.Consumer>
)}
<PropertiesModalContext.Consumer>
{fn => <Button icon="fa-solid fa-rectangle-list" onClick={() => fn(this.props.node.properties)} color={"ml-1 " + (!!this.props.small ? "is-small" : "")} title="Properties" />}
</PropertiesModalContext.Consumer>
</div>
);
}
Expand Down

0 comments on commit f0f9858

Please sign in to comment.