Do not break the layout when no access control group is selected

This commit is contained in:
Johannes
2016-11-24 12:11:23 +01:00
parent 376678881c
commit a1c83c79b2
2 changed files with 2 additions and 4 deletions

View File

@@ -99,11 +99,10 @@
<div class="radio">
<label>
<input type="radio" ng-model="appConfigure.accessRestrictionOption" value="groups" ng-disabled="groups.length <= 1">
Restrict to groups
Restrict to groups <span class="label label-danger" ng-show="appConfigure.accessRestrictionOption === 'groups' && !appConfigure.isAccessRestrictionValid()">Select at least one group</span>
</label>
</div>
<div ng-show="groups.length <= 1">No groups available. Create groups to restrict access to them first.</div>
<div class="has-error" ng-show="appConfigure.accessRestrictionOption === 'groups' && !appConfigure.isAccessRestrictionValid()">Select at least one group</div>
<div>
<div>
<span ng-repeat="group in groups | ignoreAdminGroup">