Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link/Node: noop onClick/Hover if readonly #45

Merged
merged 2 commits into from
Oct 19, 2019

Conversation

loonyuni
Copy link
Contributor

In #43 links and
nodes were clickable and deletable. This commit disables the onClick for
Nodes if config.readonly is set to true and disables onClick and Hover
for Links.

It also updates the OnLinkClick interface to point to IOnLinkClick.
Previously it pointed to IOnLinkMouseLeave which shares the same
interface but was likely a copy paste error.

loonyuni and others added 2 commits September 20, 2019 10:58
In  MrBlenny#43 links and
nodes were clickable and deletable. This commit disables the onClick for
Nodes if config.readonly is set to true and disables onClick and Hover
for Links.

It also updates the OnLinkClick interface to point to IOnLinkClick.
Previously it pointed to IOnLinkMouseLeave which shares the same
interface but was likely a copy paste error.
@MrBlenny MrBlenny merged commit c51a246 into MrBlenny:master Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants