Disable group access control and show info if there are no groups

This commit is contained in:
Johannes Zellner
2016-02-26 11:59:18 +01:00
parent 7a34f40611
commit e9a2b2a7cf

View File

@@ -49,10 +49,11 @@
</div>
<div class="radio">
<label>
<input type="radio" ng-model="appInstall.accessRestrictionOption" value="restricted">
<input type="radio" ng-model="appInstall.accessRestrictionOption" value="restricted" ng-disabled="groups.length <= 1">
Restrict to groups
</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="appInstall.accessRestrictionOption !== '' && !appInstall.isAccessRestrictionValid()">Select at least one group</div>
<div>
<div>