1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 15:55:23 +02:00

feat(ux): Alphabetically sort configs and secrets in service details/creation (#2396)

* fix(sorting): Alphabetically sort configs in service details select box
* fix(sorting): Alphabetically sort configs and secrets  for service creation
This commit is contained in:
Ricardo Cardona Ramirez 2018-10-27 21:39:09 -05:00 committed by Anthony Lapenna
parent 9813099aa4
commit fe6ca042f3
4 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@
<rd-widget-body classes="no-padding">
<div class="form-inline" style="padding: 10px;">
Add a secret:
<select class="form-control" ng-options="secret.Name for secret in secrets" ng-model="state.addSecret.secret">
<select class="form-control" ng-options="secret.Name for secret in secrets | orderBy: 'Name'" ng-model="state.addSecret.secret">
<option selected disabled hidden value="">Select a secret</option>
</select>
<div class="form-group" ng-if="applicationState.endpoint.apiVersion >= 1.30 && state.addSecret.override">