Skip to content

Commit

Permalink
Query Snippets: Use onClick instead of link for 'Click here' option (#…
Browse files Browse the repository at this point in the history
…4144)

* Snippets: Don't change url when not needed

* Revert "Snippets: Don't change url when not needed"

This reverts commit 2f346f3.

* Query Snippets: use onClick instead of link
  • Loading branch information
gabrieldutra authored and arikfr committed Oct 27, 2019
1 parent c622a76 commit c5a65b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/pages/query-snippets/QuerySnippetsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class QuerySnippetsList extends React.Component {
There are no query snippets yet.
{policy.isCreateQuerySnippetEnabled() && (
<div className="m-t-5">
<a href="/query_snippets/new">Click here</a> to add one.
<a className="clickable" onClick={() => this.showSnippetDialog()}>Click here</a> to add one.
</div>
)}
</div>
Expand Down

0 comments on commit c5a65b3

Please sign in to comment.