Allow to select dashboard visibility during app installation also

This commit is contained in:
Johannes Zellner
2021-03-01 18:52:10 +01:00
parent 34cd750121
commit b9501d69a5

View File

@@ -53,18 +53,16 @@
</ng-form>
</div>
<div class="form-group" ng-show="appInstall.customAuth && !appInstall.app.manifest.addons.email">
<label class="control-label">{{ 'appstore.installDialog.userManagement' | tr }}</label>
<p>{{ 'appstore.installDialog.userManagementNone' | tr }}</p>
</div>
<div class="form-group" ng-show="appInstall.app.manifest.addons.email">
<label class="control-label">{{ 'appstore.installDialog.userManagement' | tr }}</label>
<p>{{ 'appstore.installDialog.userManagementMailbox' | tr }}</p>
</div>
<div class="form-group" ng-show="!appInstall.customAuth && !appInstall.app.manifest.addons.email">
<label class="control-label">{{ 'appstore.installDialog.userManagement' | tr }}</label>
<div class="form-group" ng-show="!appInstall.app.manifest.addons.email">
<label class="control-label" ng-show="!appInstall.customAuth">{{ 'appstore.installDialog.userManagement' | tr }}</label>
<label class="control-label" ng-show="appInstall.customAuth">{{ 'app.accessControl.userManagement.dashboardVisibility' | tr }}</label>
<p ng-show="appInstall.customAuth">{{ 'appstore.installDialog.userManagementNone' | tr }}</p>
<div class="radio" ng-show="appInstall.optionalSso">
<label>
<input type="radio" ng-model="appInstall.accessRestrictionOption" value="nosso"> {{ 'appstore.installDialog.userManagementLeaveToApp' | tr }}
@@ -72,12 +70,16 @@
</div>
<div class="radio">
<label>
<input type="radio" ng-model="appInstall.accessRestrictionOption" value="any"> {{ 'appstore.installDialog.userManagementAllUsers' | tr }}
<input type="radio" ng-model="appInstall.accessRestrictionOption" value="any">
<span ng-show="!appInstall.customAuth">{{ 'appstore.installDialog.userManagementAllUsers' | tr }}</span>
<span ng-show="appInstall.customAuth">{{ 'app.accessControl.userManagement.visibleForAllUsers' | tr }}</span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" ng-model="appInstall.accessRestrictionOption" value="groups"> {{ 'appstore.installDialog.userManagementSelectUsers' | tr }}
<input type="radio" ng-model="appInstall.accessRestrictionOption" value="groups">
<span ng-show="!appInstall.customAuth">{{ 'appstore.installDialog.userManagementSelectUsers' | tr }}</span>
<span ng-show="appInstall.customAuth">{{ 'app.accessControl.userManagement.visibleForSelected' | tr }}</span>
<span class="label label-danger" ng-show="appInstall.accessRestrictionOption === 'groups' && !appInstall.isAccessRestrictionValid()">{{ 'appstore.installDialog.errorUserManagementSelectAtLeastOne' | tr }}</span>
</label>
</div>