Skip to content

Commit

Permalink
Make sorting in media consistent with sorting in content (#9756)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef authored Feb 21, 2021
1 parent 01991db commit 821cba5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
vm.saveButtonState = "init";
vm.sortOrder = {};
vm.sortableOptions = {
axis: "y",
containment: "parent",
distance: 10,
tolerance: "pointer",
opacity: 0.7,
Expand Down
10 changes: 4 additions & 6 deletions src/Umbraco.Web.UI.Client/src/views/media/sort.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@
<tr>
<th colspan="2">
<button type="button" class="btn-reset" ng-click="vm.sort('name')">
<b><localize key="general_name">Name</localize></b>
<strong><localize key="general_name">Name</localize></strong>
<span ng-if="vm.sortOrder.column === 'name'" aria-hidden="true">
<i ng-if="vm.sortOrder.reverse" class="icon-navigation-up"></i>
<i ng-if="!vm.sortOrder.reverse" class="icon-navigation-down"></i>
<i ng-class="{ 'icon-navigation-up': vm.sortOrder.reverse, 'icon-navigation-down': !vm.sortOrder.reverse }"></i>
</span>
</button>
</th>
<th>
<button type="button" class="btn-reset" ng-click="vm.sort('createDate')">
<b><localize key="sort_sortCreationDate">Creation date</localize></b>
<strong><localize key="sort_sortCreationDate">Creation date</localize></strong>
<span ng-if="vm.sortOrder.column === 'createDate'" aria-hidden="true">
<i ng-if="vm.sortOrder.reverse" class="icon-navigation-up"></i>
<i ng-if="!vm.sortOrder.reverse" class="icon-navigation-down"></i>
<i ng-class="{ 'icon-navigation-up': vm.sortOrder.reverse, 'icon-navigation-down': !vm.sortOrder.reverse }"></i>
</span>
</button>
</th>
Expand Down

0 comments on commit 821cba5

Please sign in to comment.