Preselect current user for singleuser apps

This commit is contained in:
Johannes Zellner
2015-10-28 22:07:41 +01:00
parent 6b6e417435
commit c0e9091e4b
2 changed files with 5 additions and 6 deletions

View File

@@ -38,8 +38,7 @@
<div class="form-group" ng-show="appInstall.app.manifest.singleUser">
<label class="control-label" for="accessRestriction">User</label>
<p>This is a single user application.</p>
<select class="form-control" id="accessRestriction" ng-model="appInstall.accessRestriction" ng-required="appInstall.app.manifest.singleUser">
<option ng-repeat="user in users" value="{{user.id}}">{{user.username}} - {{user.email}}</option>
<select class="form-control" id="accessRestriction" ng-model="appInstall.accessRestriction" ng-options="user as user.username for user in users track by user.id" ng-required="appInstall.app.manifest.singleUser">
</select>
</div>