Sort dictionary translations by display name
This commit is contained in:
committed by
Sebastiaan Janssen
parent
f33c43609f
commit
48e38b089d
@@ -22,7 +22,7 @@
|
||||
<umb-box>
|
||||
<umb-box-content>
|
||||
<p ng-bind-html="vm.description"></p>
|
||||
<umb-property ng-repeat="translation in vm.content.translations" property="translation.property">
|
||||
<umb-property ng-repeat="translation in vm.content.translations | orderBy:'displayName'" property="translation.property">
|
||||
<textarea rows="2" class="autogrow" style="width: 100%;" ng-model="translation.translation" maxlength="1000"></textarea>
|
||||
</umb-property>
|
||||
</umb-box-content>
|
||||
|
||||
@@ -28,11 +28,11 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th><localize key="general_name">Name</localize></th>
|
||||
<th ng-repeat="column in vm.items[0].translations">{{column.displayName}}</th>
|
||||
<th ng-repeat="column in vm.items[0].translations | orderBy:'displayName'">{{column.displayName}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="item in vm.items track by item.id" style="cursor: pointer;">
|
||||
<tr ng-repeat="item in vm.items | orderBy:'displayName' track by item.id" style="cursor: pointer;">
|
||||
<th>
|
||||
<span class="bold" ng-style="item.style"><a href="" ng-click="vm.clickItem(item.id)">{{item.name}}</a></span>
|
||||
</th>
|
||||
|
||||
Reference in New Issue
Block a user