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

Don't sort time field on column header click #3690

Merged
merged 2 commits into from
Apr 28, 2015

Conversation

lukasolson
Copy link
Member

A recent enhancement added the ability to remove a column in discover by clicking on an "x" in the column header. As part of this change, clicking on the table column header no longer sorts by that column, and instead you need to click on the actual sort icon to sort by the column. This change made sorting by a column more consistent with other buttons in column headers, like remove column, move column left/right, etc.)

However, the Time column there by default for timestamp index patterns didn't get this same change. This PR simply makes the same change to the Time column.

Closes #3688.

@@ -1,6 +1,6 @@
<th width="1%"></th>
<th ng-if="indexPattern.timeFieldName">
<span ng-click="sort(indexPattern.timeFieldName)" tooltip="Sort by time">Time <i ng-class="headerClass(indexPattern.timeFieldName)"></i></span>
<span tooltip="Sort by time">Time <i ng-class="headerClass(indexPattern.timeFieldName)" ng-click="sort(indexPattern.timeFieldName)"></i></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the tooltip to the <i> as well?

@rashidkpc rashidkpc assigned lukasolson and unassigned rashidkpc Apr 28, 2015
@lukasolson lukasolson assigned rashidkpc and unassigned lukasolson Apr 28, 2015
rashidkpc added a commit that referenced this pull request Apr 28, 2015
Don't sort time field on column header click
@rashidkpc rashidkpc merged commit 3795481 into elastic:master Apr 28, 2015
@lukasolson lukasolson deleted the issues/3688 branch February 11, 2016 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sorting requires clicking sort icon, not column header
2 participants