Skip to content

Commit

Permalink
[Bug fix] Few small bugs on Queries list page (#3402)
Browse files Browse the repository at this point in the history
* Link to query page
* Sidebar menu item title: `Archive` -> `Archived`
* Whitespaces in empty state block
  • Loading branch information
kravets-levko authored Feb 5, 2019
1 parent 045c171 commit ec475e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/app/pages/queries-list/QueriesList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class QueriesList extends React.Component {
{
key: 'archive',
href: 'queries/archive',
title: 'Archive',
title: 'Archived',
icon: () => <Sidebar.MenuIcon icon="fa fa-archive" />,
},
{
Expand All @@ -56,7 +56,7 @@ class QueriesList extends React.Component {
Columns.favorites({ className: 'p-r-0' }),
Columns.custom.sortable((text, item) => (
<React.Fragment>
<a className="table-main-title" href={'dashboard/' + item.slug}>{ item.name }</a>
<a className="table-main-title" href={'queries/' + item.id}>{ item.name }</a>
<QueryTagsControl
className="d-block"
tags={item.tags}
Expand Down
4 changes: 2 additions & 2 deletions client/app/pages/queries-list/QueriesListEmptyState.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default function QueriesListEmptyState({ page, searchTerm, selectedTags }
);
case 'my': return (
<div className="tiled bg-white p-15">
<a href="queries/new" className="btn btn-primary btn-sm">Create your first query</a> to populate My Queries
list. Need help? Check out our
<a href="queries/new" className="btn btn-primary btn-sm">Create your first query</a>
{' '}to populate My Queries list. Need help? Check out our{' '}
<a href="https://redash.io/help/user-guide/querying/writing-queries">query writing documentation</a>.
</div>
);
Expand Down

0 comments on commit ec475e4

Please sign in to comment.