Skip to content

Commit

Permalink
Update Snippets list to use href instead of onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldutra committed May 14, 2019
1 parent 5d49731 commit e7ff839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/app/pages/query-snippets/QuerySnippetsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class QuerySnippetsList extends React.Component {
listColumns = [
Columns.custom.sortable((text, querySnippet) => (
<div>
<a className="table-main-title clickable" onClick={() => this.showSnippetDialog(querySnippet)}>
<a className="table-main-title" href={'query_snippets/' + querySnippet.id}>
{querySnippet.trigger}
</a>
</div>
Expand Down Expand Up @@ -140,7 +140,7 @@ class QuerySnippetsList extends React.Component {
<div className="m-b-15">
<Button
type="primary"
onClick={() => this.showSnippetDialog()}
href="query_snippets/new"
disabled={!policy.isCreateQuerySnippetEnabled()}
>
<i className="fa fa-plus m-r-5" />
Expand Down

0 comments on commit e7ff839

Please sign in to comment.