GUACAMOLE-526: Use toArray where necessary for orderBy.

This commit is contained in:
Michael Jumper
2018-04-30 13:37:09 -07:00
parent f7ca11df50
commit ae6994a912
2 changed files with 4 additions and 4 deletions

View File

@@ -64,9 +64,9 @@
translate="CLIENT.HELP_SHARE_LINK"
translate-values="{LINKS : getShareLinkCount()}"></p>
<table>
<tr ng-repeat="link in client.shareLinks | orderBy: name">
<th>{{link.name}}</th>
<td><a href="{{link.href}}" target="_blank">{{link.href}}</a></td>
<tr ng-repeat="link in client.shareLinks | toArray | orderBy: value.name">
<th>{{link.value.name}}</th>
<td><a href="{{link.value.href}}" target="_blank">{{link.value.href}}</a></td>
</tr>
</table>
</div>

View File

@@ -9,6 +9,6 @@
<select class="time-zone"
ng-disabled="!region"
ng-model="model"
ng-options="name for (name, value) in timeZones[region] | orderBy: name"></select>
ng-options="timeZone.value as timeZone.key for timeZone in timeZones[region] | toArray | orderBy: key"></select>
</div>